mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
9 lines
213 B
Rust
9 lines
213 B
Rust
// 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 evaluation of constant value failed
|
|
|
|
fn main() {}
|