blob: e371029032fe906be94f93a95ee88634a13003c9 (
plain)
1
2
3
4
5
6
7
8
9
|
// --force-warn $LINT causes $LINT (which is deny-by-default) to warn
// compile-flags: --force-warn const_err
// check-pass
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() {}
|