summary refs log tree commit diff
path: root/src/test/ui/asm/asm-out-assign-imm.nll.stderr
blob: 40a36dd895f772b9b82b217f2004418f1029188b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
error[E0384]: cannot assign twice to immutable variable `x`
  --> $DIR/asm-out-assign-imm.rs:34:34
   |
LL |     let x: isize;
   |         - help: make this binding mutable: `mut x`
LL |     x = 1;
   |     ----- first assignment to `x`
...
LL |         asm!("mov $1, $0" : "=r"(x) : "r"(5));
   |                                  ^ cannot assign twice to immutable variable

error: aborting due to previous error

For more information about this error, try `rustc --explain E0384`.