File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -24,4 +24,4 @@ const Y2: usize = &1 as *const i32 as usize + 1; //~ ERROR cannot be used
24
24
const Z : i32 = unsafe { * ( & 1 as * const i32 ) } ;
25
25
// unconst and bad, will thus error in miri
26
26
const Z2 : i32 = unsafe { * ( 42 as * const i32 ) } ; //~ ERROR cannot be used
27
- const Z3 : i32 = unsafe { * ( 44 as * const i32 ) } ; //~ ERROR cannot be used
27
+ const Z3 : i32 = unsafe { * ( 44 as * const i32 ) } ; //~ ERROR cannot be used
Original file line number Diff line number Diff line change @@ -15,4 +15,4 @@ fn main() {
15
15
//~^ ERROR does not live long enough
16
16
let y: & ' static usize = & ( & 1 as * const i32 as usize + 1 ) ; //~ ERROR does not live long enough
17
17
let z: & ' static i32 = & ( unsafe { * ( 42 as * const i32 ) } ) ; //~ ERROR does not live long enough
18
- }
18
+ }
You can’t perform that action at this time.
0 commit comments