1
Fork 0

Auto merge of #127382 - estebank:const-let, r=compiler-errors

Use verbose style when suggesting changing `const` with `let`
This commit is contained in:
bors 2024-07-12 01:18:12 +00:00
commit 4a31a6c32a
25 changed files with 245 additions and 129 deletions

View file

@ -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