File tree 2 files changed +10
-6
lines changed
2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,10 @@ fn main() {
17
17
18
18
let x: u64 ;
19
19
asm ! ( "{}" , in( reg) x) ;
20
- //~^ ERROR use of possibly-uninitialized variable: `x`
20
+ //~^ ERROR used binding `x` isn't initialized
21
21
let mut y: u64 ;
22
22
asm ! ( "{}" , inout( reg) y) ;
23
- //~^ ERROR use of possibly-uninitialized variable: `y`
23
+ //~^ ERROR used binding `y` isn't initialized
24
24
let _ = y;
25
25
26
26
// 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
2
2
--> $DIR/type-check-2-2.rs:19:28
3
3
|
4
+ LL | let x: u64;
5
+ | - binding declared here but left uninitialized
4
6
LL | asm!("{}", in(reg) x);
5
- | ^ use of possibly-uninitialized `x`
7
+ | ^ `x` used here but it isn't initialized
6
8
7
- error[E0381]: use of possibly-uninitialized variable: `y`
9
+ error[E0381]: used binding `y` isn't initialized
8
10
--> $DIR/type-check-2-2.rs:22:9
9
11
|
12
+ LL | let mut y: u64;
13
+ | ----- binding declared here but left uninitialized
10
14
LL | asm!("{}", inout(reg) y);
11
- | ^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `y`
15
+ | ^^^^^^^^^^^^^^^^^^^^^^^^ `y` used here but it isn't initialized
12
16
13
17
error[E0596]: cannot borrow `v` as mutable, as it is not declared as mutable
14
18
--> $DIR/type-check-2-2.rs:30:29
You can’t perform that action at this time.
0 commit comments