blob: 64aeb46894d169b63303972a07371c471d5498aa [file] [log] [blame]
// build-pass
#![warn(const_err)]
fn main() {
&{ [1, 2, 3][4] };
//~^ WARN index out of bounds
//~| WARN reaching this expression at runtime will panic or abort
//~| WARN erroneous constant used [const_err]
}