summaryrefslogtreecommitdiffstats
path: root/src/test/ui/lint/force-warn/allow-warnings.rs
blob: 0199381fcbb543b72c08c965d89550cc1886b4ab (plain)
1
2
3
4
5
6
7
8
9
10
11
// --force-warn $LINT causes $LINT (which is warn-by-default) to warn
// despite allowing all warnings in module
// compile-flags: --force-warn dead_code
// check-pass

#![allow(warnings)]

fn dead_function() {}
//~^ WARN function `dead_function` is never used

fn main() {}