Skip to content

Commit 4b731a9

Browse files
committed
Fix tidy
1 parent a091a65 commit 4b731a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/test/ui/const-eval/const_raw_ptr_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ const Y2: usize = &1 as *const i32 as usize + 1; //~ ERROR cannot be used
2424
const Z: i32 = unsafe { *(&1 as *const i32) };
2525
// unconst and bad, will thus error in miri
2626
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

src/test/ui/const-eval/promoted_raw_ptr_ops.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ fn main() {
1515
//~^ ERROR does not live long enough
1616
let y: &'static usize = &(&1 as *const i32 as usize + 1); //~ ERROR does not live long enough
1717
let z: &'static i32 = &(unsafe { *(42 as *const i32) }); //~ ERROR does not live long enough
18-
}
18+
}

0 commit comments

Comments
 (0)