mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 04:55:22 +03:00
afe145d227
Point at `:` when using it instead of `;` 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 type ascription. Fix #42057, #41928.