]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0384]: cannot assign twice to immutable variable `x` |
48663c56 | 2 | --> $DIR/borrowck-match-binding-is-assignment.rs:14:13 |
b7449926 XL |
3 | | |
4 | LL | x => { | |
5 | | - | |
6 | | | | |
7 | | first assignment to `x` | |
cdc7bbd5 | 8 | | help: consider making this binding mutable: `mut x` |
532ac7d7 | 9 | LL | x += 1; |
b7449926 XL |
10 | | ^^^^^^ cannot assign twice to immutable variable |
11 | ||
12 | error[E0384]: cannot assign twice to immutable variable `x` | |
48663c56 | 13 | --> $DIR/borrowck-match-binding-is-assignment.rs:20:13 |
b7449926 XL |
14 | | |
15 | LL | E::Foo(x) => { | |
16 | | - | |
17 | | | | |
18 | | first assignment to `x` | |
cdc7bbd5 | 19 | | help: consider making this binding mutable: `mut x` |
532ac7d7 | 20 | LL | x += 1; |
b7449926 XL |
21 | | ^^^^^^ cannot assign twice to immutable variable |
22 | ||
23 | error[E0384]: cannot assign twice to immutable variable `x` | |
48663c56 | 24 | --> $DIR/borrowck-match-binding-is-assignment.rs:26:13 |
b7449926 XL |
25 | | |
26 | LL | S { bar: x } => { | |
27 | | - | |
28 | | | | |
29 | | first assignment to `x` | |
cdc7bbd5 | 30 | | help: consider making this binding mutable: `mut x` |
532ac7d7 | 31 | LL | x += 1; |
b7449926 XL |
32 | | ^^^^^^ cannot assign twice to immutable variable |
33 | ||
34 | error[E0384]: cannot assign twice to immutable variable `x` | |
48663c56 | 35 | --> $DIR/borrowck-match-binding-is-assignment.rs:32:13 |
b7449926 XL |
36 | | |
37 | LL | (x,) => { | |
38 | | - | |
39 | | | | |
40 | | first assignment to `x` | |
cdc7bbd5 | 41 | | help: consider making this binding mutable: `mut x` |
532ac7d7 | 42 | LL | x += 1; |
b7449926 XL |
43 | | ^^^^^^ cannot assign twice to immutable variable |
44 | ||
45 | error[E0384]: cannot assign twice to immutable variable `x` | |
48663c56 | 46 | --> $DIR/borrowck-match-binding-is-assignment.rs:38:13 |
b7449926 XL |
47 | | |
48 | LL | [x,_,_] => { | |
49 | | - | |
50 | | | | |
51 | | first assignment to `x` | |
cdc7bbd5 | 52 | | help: consider making this binding mutable: `mut x` |
532ac7d7 | 53 | LL | x += 1; |
b7449926 XL |
54 | | ^^^^^^ cannot assign twice to immutable variable |
55 | ||
56 | error: aborting due to 5 previous errors | |
57 | ||
58 | For more information about this error, try `rustc --explain E0384`. |