blob: 76013c77de0c258917db8cbd81f2491da6a26c95 [file] [log] [blame]
fn main() {
&{[1, 2, 3][4]};
//~^ ERROR index out of bounds
//~| ERROR reaching this expression at runtime will panic or abort
//~| ERROR this expression will panic at runtime
}