mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-17 17:36:38 +00:00
9 lines
198 B
Rust
9 lines
198 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 index out of bounds
|
|
|
|
fn main() {}
|