12 lines
275 B
Rust
12 lines
275 B
Rust
// --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() {}
|