]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/pub_const_err_bin.rs
Rollup merge of #83634 - JohnTitor:proc-macro-ice, r=varkor
[rust.git] / src / test / ui / consts / const-eval / pub_const_err_bin.rs
1 // check-pass
2 #![warn(const_err)]
3
4 pub const Z: u32 = 0 - 1;
5 //~^ WARN any use of this value will cause an error
6 //~| WARN this was previously accepted by the compiler but is being phased out
7
8 pub type Foo = [i32; 0 - 1];
9
10 fn main() {}