1 error[E0384]: cannot assign twice to immutable variable `x`
2 --> $DIR/borrowck-match-binding-is-assignment.rs:27:13
7 | first assignment to `x`
8 | help: make this binding mutable: `mut x`
9 LL | x += 1; //[ast]~ ERROR cannot assign twice to immutable variable `x`
10 | ^^^^^^ cannot assign twice to immutable variable
12 error[E0384]: cannot assign twice to immutable variable `x`
13 --> $DIR/borrowck-match-binding-is-assignment.rs:34:13
18 | first assignment to `x`
19 | help: make this binding mutable: `mut x`
20 LL | x += 1; //[ast]~ ERROR cannot assign twice to immutable variable `x`
21 | ^^^^^^ cannot assign twice to immutable variable
23 error[E0384]: cannot assign twice to immutable variable `x`
24 --> $DIR/borrowck-match-binding-is-assignment.rs:41:13
26 LL | S { bar: x } => {
29 | first assignment to `x`
30 | help: make this binding mutable: `mut x`
31 LL | x += 1; //[ast]~ ERROR cannot assign twice to immutable variable `x`
32 | ^^^^^^ cannot assign twice to immutable variable
34 error[E0384]: cannot assign twice to immutable variable `x`
35 --> $DIR/borrowck-match-binding-is-assignment.rs:48:13
40 | first assignment to `x`
41 | help: make this binding mutable: `mut x`
42 LL | x += 1; //[ast]~ ERROR cannot assign twice to immutable variable `x`
43 | ^^^^^^ cannot assign twice to immutable variable
45 error[E0384]: cannot assign twice to immutable variable `x`
46 --> $DIR/borrowck-match-binding-is-assignment.rs:55:13
51 | first assignment to `x`
52 | help: make this binding mutable: `mut x`
53 LL | x += 1; //[ast]~ ERROR cannot assign twice to immutable variable `x`
54 | ^^^^^^ cannot assign twice to immutable variable
56 error: aborting due to 5 previous errors
58 For more information about this error, try `rustc --explain E0384`.