mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-31 21:47:15 +03:00
fix test for rustup
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user