blob: b61f8dbab0093266726edf3264c0e2ccce349833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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;
LL + let &(mut x) = &0;
|
error: aborting due to 1 previous error
|