mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 01:04:03 +00:00
12 lines
274 B
Rust
12 lines
274 B
Rust
// --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() {}
|