]> git.lizzy.rs Git - rust.git/commitdiff
Fix tidy
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Fri, 3 Aug 2018 12:22:22 +0000 (14:22 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Tue, 7 Aug 2018 12:41:33 +0000 (14:41 +0200)
src/test/ui/const-eval/const_raw_ptr_ops.rs
src/test/ui/const-eval/promoted_raw_ptr_ops.rs

index 9121c67b8b9ba7524f774d2903ed449a86ee592b..2aff6a7c55c20e080f68a536e3ba090051bff29e 100644 (file)
@@ -24,4 +24,4 @@ fn main() {}
 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
\ No newline at end of file
+const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR cannot be used
index 30e7648f04d9a3eb799f58a998e44a08a424407b..3b437f69d8d63de1386b6f9a7cc6ee6461e6daad 100644 (file)
@@ -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
-}
\ No newline at end of file
+}