From 8ca87f1f8d8caf3460246c114348e3b8feccd45a Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Wed, 4 Mar 2020 23:16:24 +0100 Subject: [PATCH] adjust error --- tests/compile-fail/slice-too-big.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/compile-fail/slice-too-big.rs b/tests/compile-fail/slice-too-big.rs index 08ab48175a..74f3421bab 100644 --- a/tests/compile-fail/slice-too-big.rs +++ b/tests/compile-fail/slice-too-big.rs @@ -3,5 +3,5 @@ use std::usize; fn main() { unsafe { let ptr = Box::into_raw(Box::new(0u8)); - let _x: &[u8] = mem::transmute((ptr, usize::MAX)); //~ ERROR: invalid slice: total size is bigger than largest supported object + let _x: &[u8] = mem::transmute((ptr, usize::MAX)); //~ ERROR: invalid reference metadata: slice is bigger than largest supported object } }