Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
consts
/
const-eval
/
unused-broken-const.rs
blob: 56b16e224e5ad05cc20ebaf7a3dfbef1ea9b74d7 [
file
] [
log
] [
blame
]
// make sure that an *unused* broken const triggers an error even in a check build
// compile-flags: --emit=dep-info,metadata
const
FOO
:
i32
=
[][
0
];
//~^ ERROR any use of this value will cause an error
fn
main
()
{}