miniblog.
← Back to all posts
Wilfred Hughes
Jul 27, 2017 at 20:37
Having wasted half an hour of my life once due to ; vs : (it was 1 pixel!), I love that rustc is especially helpful:
https://github.com/rust-lang/rust/pull/43096
Point at `:` when using it instead of `;` by estebank · Pull Request #43096 · rust-lang/rust
When triggering type ascription in such a way that we can infer a statement end was intended, add a suggestion for the change. Always point out the reason for the expectation of a type is due to ty...