Skip to content

Commit

Permalink
adjust error
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Mar 4, 2020
1 parent ff55294 commit 8ca87f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/compile-fail/slice-too-big.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
} }

0 comments on commit 8ca87f1

Please sign in to comment.