rust/tests/ui/pattern/issue-80186-mut-binding-help-suggestion.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

15 lines
372 B
Plaintext

error: `mut` must be attached to each individual binding
--> $DIR/issue-80186-mut-binding-help-suggestion.rs:5:9
|
LL | let mut &x = &0;
| ^^^^^^
|
= note: `mut` may be followed by `variable` and `variable @ pattern`
help: add `mut` to each binding
|
LL | let &(mut x) = &0;
| ~~~~~~~~
error: aborting due to 1 previous error