We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a091a65 commit 4b731a9Copy full SHA for 4b731a9
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
24
const Z: i32 = unsafe { *(&1 as *const i32) };
25
// unconst and bad, will thus error in miri
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
+const Z3: i32 = unsafe { *(44 as *const i32) }; //~ ERROR cannot be used
src/test/ui/const-eval/promoted_raw_ptr_ops.rs
@@ -15,4 +15,4 @@ fn main() {
15
//~^ ERROR does not live long enough
16
let y: &'static usize = &(&1 as *const i32 as usize + 1); //~ ERROR does not live long enough
17
let z: &'static i32 = &(unsafe { *(42 as *const i32) }); //~ ERROR does not live long enough
18
-}
+}
0 commit comments