summaryrefslogtreecommitdiffstats
path: root/tests/ui/pattern/issue-80186-mut-binding-help-suggestion.stderr
blob: 75b6c163b2cc37b0820031d4fcee0fdb0989d76b (plain)
1
2
3
4
5
6
7
8
9
10
error: `mut` must be attached to each individual binding
  --> $DIR/issue-80186-mut-binding-help-suggestion.rs:5:9
   |
LL |     let mut &x = &0;
   |         ^^^^^^ help: add `mut` to each binding: `&(mut x)`
   |
   = note: `mut` may be followed by `variable` and `variable @ pattern`

error: aborting due to previous error