summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/force-warn/allowed-deny-by-default-lint.rs
blob: 08e75a775d0b55b98a343610efbb0b18d75c30ec (plain)
1
2
3
4
5
6
7
8
9
10
11
// --force-warn $LINT causes $LINT (which is deny-by-default) to warn
// despite $LINT being allowed in module
// compile-flags: --force-warn const_err
// 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() {}