Files
rust/tests/ui/consts/const-eval/unused-broken-const.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
198 B
Rust
Raw Normal View History

// 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 index out of bounds
fn main() {}