Sign in
fuchsia
/
third_party
/
github.com
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
ui
/
lint
/
unconditional_panic_98444.rs
blob: 56e0cf68d8a869117e6f64d17270582ae4a189d6 [
file
] [
log
] [
blame
]
//@ build-fail
fn
main
()
{
let
xs
:
[
i32
;
5
]
=
[
1
,
2
,
3
,
4
,
5
];
let
_
=
&
xs
;
let
_
=
xs
[
7
];
//~ ERROR: this operation will panic at runtime [unconditional_panic]
}