blob: 0abc49137269d93e6a7f5d0d9a8e472e3b0e6e1b [file] [log] [blame]
// compile-flags: --force-warns const_err -Zunstable-options
// check-pass
#![allow(const_err)]
const C: i32 = 1 / 0;
//~^ WARN any use of this value will cause an error
//~| WARN this was previously accepted by the compiler
fn main() {}