1 error[E0381]: used binding `x` isn't initialized
2 --> $DIR/type-check-5.rs:15:28
5 | - binding declared here but left uninitialized
6 LL | asm!("{}", in(reg) x);
7 | ^ `x` used here but it isn't initialized
9 error[E0381]: used binding `y` isn't initialized
10 --> $DIR/type-check-5.rs:18:9
13 | ----- binding declared here but left uninitialized
14 LL | asm!("{}", inout(reg) y);
15 | ^^^^^^^^^^^^^^^^^^^^^^^^ `y` used here but it isn't initialized
17 error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
18 --> $DIR/type-check-5.rs:26:29
20 LL | let v: Vec<u64> = vec![0, 1, 2];
21 | - help: consider changing this to be mutable: `mut v`
22 LL | asm!("{}", in(reg) v[0]);
23 LL | asm!("{}", out(reg) v[0]);
24 | ^ cannot borrow as mutable
26 error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
27 --> $DIR/type-check-5.rs:28:31
29 LL | let v: Vec<u64> = vec![0, 1, 2];
30 | - help: consider changing this to be mutable: `mut v`
32 LL | asm!("{}", inout(reg) v[0]);
33 | ^ cannot borrow as mutable
35 error: aborting due to 4 previous errors
37 Some errors have detailed explanations: E0381, E0596.
38 For more information about an error, try `rustc --explain E0381`.