2019-12-14 04:28:32 +01:00
|
|
|
// build-fail
|
|
|
|
|
|
2019-06-06 12:23:17 -07:00
|
|
|
fn main() {
|
|
|
|
|
&{[1, 2, 3][4]};
|
|
|
|
|
//~^ ERROR index out of bounds
|
|
|
|
|
//~| ERROR reaching this expression at runtime will panic or abort
|
2019-11-22 17:26:09 -03:00
|
|
|
//~| ERROR erroneous constant used [E0080]
|
2019-06-06 12:23:17 -07:00
|
|
|
}
|