about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-08-03 14:22:22 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-08-07 14:41:33 +0200
commit4b731a908b3df2a926eae5fb5233dbc73b098276 (patch)
tree88ebfe6abdf78ce30bdde6f2887392f4520f4727 /src
parenta091a6567c210686fdbc77cd1c5d5bca5e86cd3d (diff)
downloadrust-4b731a908b3df2a926eae5fb5233dbc73b098276.tar.gz
rust-4b731a908b3df2a926eae5fb5233dbc73b098276.zip
Fix tidy
Diffstat (limited to 'src')
-rw-r--r--src/test/ui/const-eval/const_raw_ptr_ops.rs2
-rw-r--r--src/test/ui/const-eval/promoted_raw_ptr_ops.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/test/ui/const-eval/const_raw_ptr_ops.rs b/src/test/ui/const-eval/const_raw_ptr_ops.rs
index 9121c67b8b9..2aff6a7c55c 100644
--- a/src/test/ui/const-eval/const_raw_ptr_ops.rs
+++ b/src/test/ui/const-eval/const_raw_ptr_ops.rs
@@ -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
\ No newline at end of file
+const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR cannot be used
diff --git a/src/test/ui/const-eval/promoted_raw_ptr_ops.rs b/src/test/ui/const-eval/promoted_raw_ptr_ops.rs
index 30e7648f04d..3b437f69d8d 100644
--- a/src/test/ui/const-eval/promoted_raw_ptr_ops.rs
+++ b/src/test/ui/const-eval/promoted_raw_ptr_ops.rs
@@ -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
+}