1 error[E0382]: use of moved value: `x`
2 --> $DIR/borrowck-asm.rs:37:13
4 LL | asm!("nop" : : "r"(x));
7 LL | let z = x; //[ast]~ ERROR use of moved value: `x`
8 | ^ value used here after move
10 = note: move occurs because `x` has type `&mut isize`, which does not implement the `Copy` trait
12 error[E0503]: cannot use `x` because it was mutably borrowed
13 --> $DIR/borrowck-asm.rs:45:32
16 | - borrow of `x` occurs here
18 LL | asm!("nop" : : "r"(x)); //[ast]~ ERROR cannot use
19 | ^ use of borrowed `x`
21 error[E0384]: cannot assign twice to immutable variable `x`
22 --> $DIR/borrowck-asm.rs:54:31
25 | - first assignment to `x`
27 LL | asm!("nop" : "=r"(x)); //[ast]~ ERROR cannot assign twice
28 | ^ cannot assign twice to immutable variable
30 error[E0506]: cannot assign to `a` because it is borrowed
31 --> $DIR/borrowck-asm.rs:60:31
34 | -- borrow of `a` occurs here
36 LL | asm!("nop" : "=r"(a)); //[ast]~ ERROR cannot assign to `a` because it is borrowed
37 | ^ assignment to borrowed `a` occurs here
39 error[E0384]: cannot assign twice to immutable variable `x`
40 --> $DIR/borrowck-asm.rs:70:31
43 | - first assignment to `x`
45 LL | asm!("nop" : "+r"(x)); //[ast]~ ERROR cannot assign twice
46 | ^ cannot assign twice to immutable variable
48 error[E0381]: use of possibly uninitialized variable: `x`
49 --> $DIR/borrowck-asm.rs:78:32
51 LL | asm!("nop" : "=*r"(x)); //[ast]~ ERROR use of possibly uninitialized variable
52 | ^ use of possibly uninitialized `x`
54 error[E0506]: cannot assign to `x` because it is borrowed
55 --> $DIR/borrowck-asm.rs:87:31
58 | -- borrow of `x` occurs here
60 LL | asm!("nop" : "+r"(x)); //[ast]~ ERROR cannot assign to `x` because it is borrowed
61 | ^ assignment to borrowed `x` occurs here
63 error[E0382]: use of moved value: `x`
64 --> $DIR/borrowck-asm.rs:96:40
66 LL | asm!("nop" : : "r"(x), "r"(x) ); //[ast]~ ERROR use of moved value
67 | - ^ value used here after move
71 = note: move occurs because `x` has type `&mut i32`, which does not implement the `Copy` trait
73 error: aborting due to 8 previous errors
75 Some errors occurred: E0381, E0382, E0384, E0503, E0506.
76 For more information about an error, try `rustc --explain E0381`.