parse: recover mut (x @ y)
as (mut x @ mut y)
. by Centril · Pull Request #69236 · rust-lang/rust (original) (raw)
Follow up to #68992 (comment) and #63945.
Specifically, when given let mut (x @ y)
we recover with let (mut x @ mut y)
as the suggestion:
error: mut
must be attached to each individual binding
--> $DIR/mut-patterns.rs:12:9
|
LL | let mut (x @ y) = 0;
| ^^^^^^^^^^^ help: add mut
to each binding: (mut x @ mut y)
|
= note: mut
may be followed by variable
and variable @ pattern