File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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
46LL | 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
1014LL | asm!("{}", inout(reg) y);
11- | ^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `y`
15+ | ^^^^^^^^^^^^^^^^^^^^^^^^ `y` used here but it isn't initialized
1216
1317error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
1418 --> $DIR/type-check-2-2.rs:30:29
You can’t perform that action at this time.
0 commit comments