Skip to content

Commit

Permalink
Fix tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Aug 7, 2018
1 parent a091a65 commit 4b731a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/const-eval/const_raw_ptr_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ const Y2: usize = &1 as *const i32 as usize + 1; //~ ERROR cannot be used
const Z: i32 = unsafe { *(&1 as *const i32) };
// unconst and bad, will thus error in miri
const Z2: i32 = unsafe { *(42 as *const i32) }; //~ ERROR cannot be used
const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR cannot be used
const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR cannot be used
2 changes: 1 addition & 1 deletion src/test/ui/const-eval/promoted_raw_ptr_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ fn main() {
//~^ ERROR does not live long enough
let y: &'static usize = &(&1 as *const i32 as usize + 1); //~ ERROR does not live long enough
let z: &'static i32 = &(unsafe { *(42 as *const i32) }); //~ ERROR does not live long enough
}
}

0 comments on commit 4b731a9

Please sign in to comment.