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