1 error[E0381]: use of possibly-uninitialized variable: `x`
2 --> $DIR/type-check-2-2.rs:19:28
4 LL | asm!("{}", in(reg) x);
5 | ^ use of possibly-uninitialized `x`
7 error[E0381]: use of possibly-uninitialized variable: `y`
8 --> $DIR/type-check-2-2.rs:22:9
10 LL | asm!("{}", inout(reg) y);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `y`
13 error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
14 --> $DIR/type-check-2-2.rs:30:29
16 LL | let v: Vec<u64> = vec![0, 1, 2];
17 | - help: consider changing this to be mutable: `mut v`
18 LL | asm!("{}", in(reg) v[0]);
19 LL | asm!("{}", out(reg) v[0]);
20 | ^ cannot borrow as mutable
22 error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
23 --> $DIR/type-check-2-2.rs:32:31
25 LL | let v: Vec<u64> = vec![0, 1, 2];
26 | - help: consider changing this to be mutable: `mut v`
28 LL | asm!("{}", inout(reg) v[0]);
29 | ^ cannot borrow as mutable
31 error: aborting due to 4 previous errors
33 Some errors have detailed explanations: E0381, E0596.
34 For more information about an error, try `rustc --explain E0381`.