]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #100168 - WaffleLapkin:improve_diagnostics_for_missing_type_in_a_cons...
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>
Fri, 5 Aug 2022 16:24:37 +0000 (21:54 +0530)
committerGitHub <noreply@github.com>
Fri, 5 Aug 2022 16:24:37 +0000 (21:54 +0530)
Improve diagnostics for `const a: = expr;`

Adds a suggestion to write a type when there is a colon, but the type is not present.
I've also shrunk spans a little, so the suggestions are a little nicer.

Resolves #100146

r? `@compiler-errors`

1  2 
compiler/rustc_parse/src/parser/item.rs