fix test for rustup

This commit is contained in:
Ralf Jung
2018-09-17 09:18:57 +02:00
parent 0d7ca7194c
commit 130d803b32
+1 -1
View File
@@ -1,6 +1,6 @@
fn main() {
let v: Vec<u8> = vec![1, 2];
let x = unsafe { *v.as_ptr().wrapping_offset(5) }; //~ ERROR constant evaluation error
//~^ NOTE memory access at offset 6, outside bounds of allocation
//~^ NOTE outside bounds of allocation
panic!("this should never print: {}", x);
}