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