]>
Commit | Line | Data |
---|---|---|
ff7c6d11 | 1 | error[E0384]: cannot assign twice to immutable variable `x` |
94b46f34 | 2 | --> $DIR/asm-out-assign-imm.rs:33:9 |
ff7c6d11 | 3 | | |
0531ce1d | 4 | LL | x = 1; |
ff7c6d11 XL |
5 | | ----- first assignment to `x` |
6 | ... | |
0531ce1d | 7 | LL | asm!("mov $1, $0" : "=r"(x) : "r"(5)); |
ff7c6d11 XL |
8 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable |
9 | ||
10 | error: aborting due to previous error | |
11 | ||
0531ce1d | 12 | For more information about this error, try `rustc --explain E0384`. |