blob: 06b372867767636f6c976af4dd4328a659cdbf2b (
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 $LINT being allowed in module
// compile-flags: --force-warn dead_code
// check-pass
#![allow(dead_code)]
fn dead_function() {}
//~^ WARN function `dead_function` is never used
fn main() {}
|