rust/tests/ui/parser/issues/issue-99910-const-let-mutually-exclusive.stderr
Esteban Küber 692bc344d5 Make parse error suggestions verbose and fix spans
Go over all structured parser suggestions and make them verbose style.

When suggesting to add or remove delimiters, turn them into multiple suggestion parts.
2024-07-12 03:02:57 +00:00

25 lines
530 B
Plaintext

error: `const` and `let` are mutually exclusive
--> $DIR/issue-99910-const-let-mutually-exclusive.rs:4:5
|
LL | const let _FOO: i32 = 123;
| ^^^^^^^^^
|
help: remove `let`
|
LL | const _FOO: i32 = 123;
| ~~~~~
error: `const` and `let` are mutually exclusive
--> $DIR/issue-99910-const-let-mutually-exclusive.rs:6:5
|
LL | let const _BAR: i32 = 123;
| ^^^^^^^^^
|
help: remove `let`
|
LL | const _BAR: i32 = 123;
| ~~~~~
error: aborting due to 2 previous errors