]> git.proxmox.com Git - rustc.git/blame - src/test/ui/asm/aarch64/type-check-2-2.stderr
New upstream version 1.66.0+dfsg1
[rustc.git] / src / test / ui / asm / aarch64 / type-check-2-2.stderr
CommitLineData
064997fb 1error[E0381]: used binding `x` isn't initialized
923072b8
FG
2 --> $DIR/type-check-2-2.rs:19:28
3 |
064997fb
FG
4LL | let x: u64;
5 | - binding declared here but left uninitialized
923072b8 6LL | asm!("{}", in(reg) x);
064997fb 7 | ^ `x` used here but it isn't initialized
2b03887a
FG
8 |
9help: consider assigning a value
10 |
11LL | let x: u64 = 0;
12 | +++
923072b8 13
064997fb 14error[E0381]: used binding `y` isn't initialized
923072b8
FG
15 --> $DIR/type-check-2-2.rs:22:9
16 |
064997fb
FG
17LL | let mut y: u64;
18 | ----- binding declared here but left uninitialized
923072b8 19LL | asm!("{}", inout(reg) y);
064997fb 20 | ^^^^^^^^^^^^^^^^^^^^^^^^ `y` used here but it isn't initialized
2b03887a
FG
21 |
22help: consider assigning a value
23 |
24LL | let mut y: u64 = 0;
25 | +++
923072b8
FG
26
27error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
28 --> $DIR/type-check-2-2.rs:30:29
29 |
30LL | let v: Vec<u64> = vec![0, 1, 2];
31 | - help: consider changing this to be mutable: `mut v`
32LL | asm!("{}", in(reg) v[0]);
33LL | asm!("{}", out(reg) v[0]);
34 | ^ cannot borrow as mutable
35
36error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
37 --> $DIR/type-check-2-2.rs:32:31
38 |
39LL | let v: Vec<u64> = vec![0, 1, 2];
40 | - help: consider changing this to be mutable: `mut v`
41...
42LL | asm!("{}", inout(reg) v[0]);
43 | ^ cannot borrow as mutable
44
45error: aborting due to 4 previous errors
46
47Some errors have detailed explanations: E0381, E0596.
48For more information about an error, try `rustc --explain E0381`.