Skip to content

Commit 9893392

Browse files
committed
Merge remote-tracking branch 'ralf/rustup-validity'
2 parents 96d080a + 8ca87f1 commit 9893392

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/compile-fail/slice-too-big.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ use std::mem;
22

33
fn main() { unsafe {
44
let ptr = Box::into_raw(Box::new(0u8));
5-
let _x: &[u8] = mem::transmute((ptr, usize::MAX)); //~ ERROR: invalid slice: total size is bigger than largest supported object
5+
let _x: &[u8] = mem::transmute((ptr, usize::MAX)); //~ ERROR: invalid reference metadata: slice is bigger than largest supported object
66
} }

0 commit comments

Comments
 (0)