Skip to content

Commit 2a2df9d

Browse files
committed
fix arm test
1 parent d09851c commit 2a2df9d

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: src/test/ui/asm/aarch64/type-check-2-2.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ fn main() {
1717

1818
let x: u64;
1919
asm!("{}", in(reg) x);
20-
//~^ ERROR use of possibly-uninitialized variable: `x`
20+
//~^ ERROR used binding `x` isn't initialized
2121
let mut y: u64;
2222
asm!("{}", inout(reg) y);
23-
//~^ ERROR use of possibly-uninitialized variable: `y`
23+
//~^ ERROR used binding `y` isn't initialized
2424
let _ = y;
2525

2626
// Outputs require mutable places

Diff for: src/test/ui/asm/aarch64/type-check-2-2.stderr

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
error[E0381]: use of possibly-uninitialized variable: `x`
1+
error[E0381]: used binding `x` isn't initialized
22
--> $DIR/type-check-2-2.rs:19:28
33
|
4+
LL | let x: u64;
5+
| - binding declared here but left uninitialized
46
LL | asm!("{}", in(reg) x);
5-
| ^ use of possibly-uninitialized `x`
7+
| ^ `x` used here but it isn't initialized
68

7-
error[E0381]: use of possibly-uninitialized variable: `y`
9+
error[E0381]: used binding `y` isn't initialized
810
--> $DIR/type-check-2-2.rs:22:9
911
|
12+
LL | let mut y: u64;
13+
| ----- binding declared here but left uninitialized
1014
LL | asm!("{}", inout(reg) y);
11-
| ^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `y`
15+
| ^^^^^^^^^^^^^^^^^^^^^^^^ `y` used here but it isn't initialized
1216

1317
error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
1418
--> $DIR/type-check-2-2.rs:30:29

0 commit comments

Comments
 (0)