mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
12 lines
277 B
Rust
12 lines
277 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() {}
|