]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-eval/pub_const_err.rs
Auto merge of #69519 - 12101111:remove-proc-macro-check, r=nagisa
[rust.git] / src / test / ui / consts / const-eval / pub_const_err.rs
1 // check-pass
2 #![warn(const_err)]
3
4 #![crate_type = "lib"]
5
6 pub const Z: u32 = 0 - 1;
7 //~^ WARN any use of this value will cause an error
8
9 pub type Foo = [i32; 0 - 1];