1 // make sure that an *unused* broken const triggers an error even in a check build
3 // compile-flags: --emit=dep-info,metadata
5 const FOO: i32 = [][0];
6 //~^ ERROR any use of this value will cause an error
7 //~| WARN this was previously accepted by the compiler but is being phased out