2018-09-19 17:22:03 +02:00
|
|
|
// 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];
|
2025-05-28 10:29:08 +00:00
|
|
|
//~^ ERROR index out of bounds
|
2018-09-19 17:22:03 +02:00
|
|
|
|
|
|
|
|
fn main() {}
|