2020-12-19 23:13:50 +01:00
|
|
|
error: `mut` must be attached to each individual binding
|
|
|
|
|
--> $DIR/issue-80186-mut-binding-help-suggestion.rs:5:9
|
|
|
|
|
|
|
|
|
|
|
LL | let mut &x = &0;
|
2024-07-06 03:07:46 +00:00
|
|
|
| ^^^^^^
|
2020-12-19 23:13:50 +01:00
|
|
|
|
|
|
|
|
|
= note: `mut` may be followed by `variable` and `variable @ pattern`
|
2024-07-06 03:07:46 +00:00
|
|
|
help: add `mut` to each binding
|
|
|
|
|
|
|
2024-07-09 22:30:26 +00:00
|
|
|
LL - let mut &x = &0;
|
|
|
|
|
LL + let &(mut x) = &0;
|
|
|
|
|
|
|
2020-12-19 23:13:50 +01:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2020-12-19 23:13:50 +01:00
|
|
|
|