1 error[E0382]: use of moved value: `x`
2 --> $DIR/borrowck-asm.rs:27:17
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:35:32
16 | ------ borrow of `x` occurs here
18 LL | asm!("nop" : : "r"(x)); //[ast]~ ERROR cannot use
19 | ^ use of borrowed `x`
22 | - borrow later used here
24 error[E0384]: cannot assign twice to immutable variable `x`
25 --> $DIR/borrowck-asm.rs:44:31
30 | first assignment to `x`
31 | help: make this binding mutable: `mut x`
33 LL | asm!("nop" : "=r"(x)); //[ast]~ ERROR cannot assign twice
34 | ^ cannot assign twice to immutable variable
36 error[E0384]: cannot assign twice to immutable variable `x`
37 --> $DIR/borrowck-asm.rs:60:31
42 | first assignment to `x`
43 | help: make this binding mutable: `mut 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:68: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:77: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
64 | - borrow later used here
66 error[E0382]: use of moved value: `x`
67 --> $DIR/borrowck-asm.rs:86:40
69 LL | asm!("nop" : : "r"(x), "r"(x) ); //[ast]~ ERROR use of moved value
70 | - ^ value used here after move
74 = note: move occurs because `x` has type `&mut i32`, which does not implement the `Copy` trait
76 error: aborting due to 7 previous errors
78 Some errors occurred: E0381, E0382, E0384, E0503, E0506.
79 For more information about an error, try `rustc --explain E0381`.