Auto merge of #127382 - estebank:const-let, r=compiler-errors
Use verbose style when suggesting changing `const` with `let`
This commit is contained in:
commit
4a31a6c32a
25 changed files with 245 additions and 129 deletions
|
@ -2,7 +2,12 @@ error: non-item in item list
|
|||
--> $DIR/suggest-assoc-const.rs:5:5
|
||||
|
|
||||
LL | let _X: i32;
|
||||
| ^^^ help: consider using `const` instead of `let` for associated const: `const`
|
||||
| ^^^
|
||||
|
|
||||
help: consider using `const` instead of `let` for associated const
|
||||
|
|
||||
LL | const _X: i32;
|
||||
| ~~~~~
|
||||
|
||||
error: aborting due to 1 previous error
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue