2021-08-18 04:05:59 -05:00
|
|
|
// --force-warn $LINT causes $LINT (which is deny-by-default) to warn
|
|
|
|
// despite $LINT being allowed in module
|
2021-07-24 03:08:33 -05:00
|
|
|
// compile-flags: --force-warn const_err
|
2021-05-27 12:19:39 -05:00
|
|
|
// check-pass
|
|
|
|
|
2021-06-02 10:18:52 -05:00
|
|
|
#![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
|
2021-05-27 12:19:39 -05:00
|
|
|
|
2021-06-02 10:18:52 -05:00
|
|
|
fn main() {}
|