From 130d803b3243a92f5c2d9230935cba7fa88e263e Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Mon, 17 Sep 2018 09:18:57 +0200 Subject: [PATCH] fix test for rustup --- tests/compile-fail/out_of_bounds_read2.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compile-fail/out_of_bounds_read2.rs b/tests/compile-fail/out_of_bounds_read2.rs index 811ba7d4b26c..e8bcf4558401 100644 --- a/tests/compile-fail/out_of_bounds_read2.rs +++ b/tests/compile-fail/out_of_bounds_read2.rs @@ -1,6 +1,6 @@ fn main() { let v: Vec = 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); }