blob: 82eae25121e418a0e9d0aa2d17b4957e283782ff [file] [log] [blame]
// check-pass
#![warn(const_err)]
pub const Z: u32 = 0 - 1;
//~^ WARN any use of this value will cause an error
//~| WARN this was previously accepted by the compiler but is being phased out
pub type Foo = [i32; 0 - 1];
fn main() {}