]> git.lizzy.rs Git - rust.git/blob - src/test/ui/assign-imm-local-twice.ast.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[rust.git] / src / test / ui / assign-imm-local-twice.ast.stderr
1 error[E0384]: cannot assign twice to immutable variable `v`
2   --> $DIR/assign-imm-local-twice.rs:20:5
3    |
4 LL |     v = 1; //[ast]~ NOTE first assignment
5    |     ----- first assignment to `v`
6 ...
7 LL |     v = 2; //[ast]~ ERROR cannot assign twice to immutable variable
8    |     ^^^^^ cannot assign twice to immutable variable
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0384`.