]> git.proxmox.com Git - rustc.git/blob - src/test/ui/asm/aarch64/type-check-2-2.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / asm / aarch64 / type-check-2-2.stderr
1 error[E0381]: use of possibly-uninitialized variable: `x`
2 --> $DIR/type-check-2-2.rs:19:28
3 |
4 LL | asm!("{}", in(reg) x);
5 | ^ use of possibly-uninitialized `x`
6
7 error[E0381]: use of possibly-uninitialized variable: `y`
8 --> $DIR/type-check-2-2.rs:22:9
9 |
10 LL | asm!("{}", inout(reg) y);
11 | ^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `y`
12
13 error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
14 --> $DIR/type-check-2-2.rs:30:29
15 |
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
21
22 error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
23 --> $DIR/type-check-2-2.rs:32:31
24 |
25 LL | let v: Vec<u64> = vec![0, 1, 2];
26 | - help: consider changing this to be mutable: `mut v`
27 ...
28 LL | asm!("{}", inout(reg) v[0]);
29 | ^ cannot borrow as mutable
30
31 error: aborting due to 4 previous errors
32
33 Some errors have detailed explanations: E0381, E0596.
34 For more information about an error, try `rustc --explain E0381`.