1 error: `mut` must be followed by a named binding
2 --> $DIR/mut-patterns.rs:9:9
5 | ^^^^^ help: remove the `mut` prefix: `_`
7 = note: `mut` may be followed by `variable` and `variable @ pattern`
9 error: `mut` must be followed by a named binding
10 --> $DIR/mut-patterns.rs:10:9
12 LL | let mut (_, _) = (0, 0);
13 | ^^^^^^^^^^ help: remove the `mut` prefix: `(_, _)`
15 = note: `mut` may be followed by `variable` and `variable @ pattern`
17 error: `mut` on a binding may not be repeated
18 --> $DIR/mut-patterns.rs:12:13
20 LL | let mut mut x = 0;
21 | ^^^ help: remove the additional `mut`s
23 error: `mut` must be attached to each individual binding
24 --> $DIR/mut-patterns.rs:17:9
26 LL | let mut Foo { x: x } = Foo { x: 3 };
27 | ^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `Foo { x: mut x }`
29 = note: `mut` may be followed by `variable` and `variable @ pattern`
31 error: `mut` must be attached to each individual binding
32 --> $DIR/mut-patterns.rs:21:9
34 LL | let mut Foo { x } = Foo { x: 3 };
35 | ^^^^^^^^^^^^^ help: add `mut` to each binding: `Foo { mut x }`
37 = note: `mut` may be followed by `variable` and `variable @ pattern`
39 error: `mut` on a binding may not be repeated
40 --> $DIR/mut-patterns.rs:26:13
42 LL | let mut mut yield(become, await) = r#yield(0, 0);
43 | ^^^ help: remove the additional `mut`s
45 error: expected identifier, found reserved keyword `yield`
46 --> $DIR/mut-patterns.rs:26:17
48 LL | let mut mut yield(become, await) = r#yield(0, 0);
49 | ^^^^^ expected identifier, found reserved keyword
51 help: you can escape reserved keywords to use them as identifiers
53 LL | let mut mut r#yield(become, await) = r#yield(0, 0);
56 error: expected identifier, found reserved keyword `become`
57 --> $DIR/mut-patterns.rs:26:23
59 LL | let mut mut yield(become, await) = r#yield(0, 0);
60 | ^^^^^^ expected identifier, found reserved keyword
62 help: you can escape reserved keywords to use them as identifiers
64 LL | let mut mut yield(r#become, await) = r#yield(0, 0);
67 error: expected identifier, found keyword `await`
68 --> $DIR/mut-patterns.rs:26:31
70 LL | let mut mut yield(become, await) = r#yield(0, 0);
71 | ^^^^^ expected identifier, found keyword
73 help: you can escape reserved keywords to use them as identifiers
75 LL | let mut mut yield(become, r#await) = r#yield(0, 0);
78 error: `mut` must be attached to each individual binding
79 --> $DIR/mut-patterns.rs:26:9
81 LL | let mut mut yield(become, await) = r#yield(0, 0);
82 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `r#yield(mut r#become, mut r#await)`
84 = note: `mut` may be followed by `variable` and `variable @ pattern`
86 error: `mut` must be attached to each individual binding
87 --> $DIR/mut-patterns.rs:35:9
89 LL | let mut W(mut a, W(b, W(ref c, W(d, B { box f }))))
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `W(mut a, W(mut b, W(ref c, W(mut d, B { box mut f }))))`
92 = note: `mut` may be followed by `variable` and `variable @ pattern`
94 error: expected identifier, found `x`
95 --> $DIR/mut-patterns.rs:42:21
98 | ^^ expected identifier
101 | -------- in this macro invocation
103 error: aborting due to 12 previous errors