1 2 3 4 5 6 7 8 9
// check-pass #![warn(const_err)] #![crate_type = "lib"] pub const Z: u32 = 0 - 1; //~^ WARN any use of this value will cause an error pub type Foo = [i32; 0 - 1];