]> git.lizzy.rs Git - rust.git/blob - src/test/ui/asm-out-assign-imm.nll.stderr
Unify API of `Scalar` and `ScalarMaybeUndef`
[rust.git] / src / test / ui / asm-out-assign-imm.nll.stderr
1 error[E0384]: cannot assign twice to immutable variable `x`
2   --> $DIR/asm-out-assign-imm.rs:33:9
3    |
4 LL |     let x: isize;
5    |         - consider changing this to `mut x`
6 LL |     x = 1;
7    |     ----- first assignment to `x`
8 ...
9 LL |         asm!("mov $1, $0" : "=r"(x) : "r"(5));
10    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0384`.