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` must be attached to each individual binding
18 --> $DIR/mut-patterns.rs:12:9
20 LL | let mut (x @ y) = 0;
21 | ^^^^^^^^^^^ help: add `mut` to each binding: `(mut x @ mut y)`
23 = note: `mut` may be followed by `variable` and `variable @ pattern`
25 error: `mut` on a binding may not be repeated
26 --> $DIR/mut-patterns.rs:14:13
28 LL | let mut mut x = 0;
29 | ^^^ help: remove the additional `mut`s
31 error: `mut` must be attached to each individual binding
32 --> $DIR/mut-patterns.rs:19:9
34 LL | let mut Foo { x: x } = Foo { x: 3 };
35 | ^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `Foo { x: mut x }`
37 = note: `mut` may be followed by `variable` and `variable @ pattern`
39 error: `mut` must be attached to each individual binding
40 --> $DIR/mut-patterns.rs:23:9
42 LL | let mut Foo { x } = Foo { x: 3 };
43 | ^^^^^^^^^^^^^ help: add `mut` to each binding: `Foo { mut x }`
45 = note: `mut` may be followed by `variable` and `variable @ pattern`
47 error: `mut` on a binding may not be repeated
48 --> $DIR/mut-patterns.rs:28:13
50 LL | let mut mut yield(become, await) = r#yield(0, 0);
51 | ^^^ help: remove the additional `mut`s
53 error: expected identifier, found reserved keyword `yield`
54 --> $DIR/mut-patterns.rs:28:17
56 LL | let mut mut yield(become, await) = r#yield(0, 0);
57 | ^^^^^ expected identifier, found reserved keyword
59 help: escape `yield` to use it as an identifier
61 LL | let mut mut r#yield(become, await) = r#yield(0, 0);
64 error: expected identifier, found reserved keyword `become`
65 --> $DIR/mut-patterns.rs:28:23
67 LL | let mut mut yield(become, await) = r#yield(0, 0);
68 | ^^^^^^ expected identifier, found reserved keyword
70 help: escape `become` to use it as an identifier
72 LL | let mut mut yield(r#become, await) = r#yield(0, 0);
75 error: expected identifier, found keyword `await`
76 --> $DIR/mut-patterns.rs:28:31
78 LL | let mut mut yield(become, await) = r#yield(0, 0);
79 | ^^^^^ expected identifier, found keyword
81 help: escape `await` to use it as an identifier
83 LL | let mut mut yield(become, r#await) = r#yield(0, 0);
86 error: `mut` must be attached to each individual binding
87 --> $DIR/mut-patterns.rs:28:9
89 LL | let mut mut yield(become, await) = r#yield(0, 0);
90 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `r#yield(mut r#become, mut r#await)`
92 = note: `mut` may be followed by `variable` and `variable @ pattern`
94 error: `mut` must be attached to each individual binding
95 --> $DIR/mut-patterns.rs:37:9
97 LL | let mut W(mut a, W(b, W(ref c, W(d, B { box f }))))
98 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: add `mut` to each binding: `W(mut a, W(mut b, W(ref c, W(mut d, B { box mut f }))))`
100 = note: `mut` may be followed by `variable` and `variable @ pattern`
102 error: expected identifier, found `x`
103 --> $DIR/mut-patterns.rs:44:21
106 | ^^ expected identifier
109 | ------- in this macro invocation
111 = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
113 error: aborting due to 13 previous errors