]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/unused-broken-const.rs
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / ui / consts / const-eval / unused-broken-const.rs
1 // make sure that an *unused* broken const triggers an error even in a check build
2
3 // compile-flags: --emit=dep-info,metadata
4
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
8
9 fn main() {}