]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/asm-out-assign-imm.nll.stderr
New upstream version 1.30.0~beta.7+dfsg1
[rustc.git] / src / test / ui / asm / asm-out-assign-imm.nll.stderr
1 error[E0384]: cannot assign twice to immutable variable `x`
2 --> $DIR/asm-out-assign-imm.rs:34:9
3 |
4 LL | let x: isize;
5 | - help: make this binding mutable: `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`.