rust/tests/ui/lint/force-warn/allowed-warn-by-default-lint.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
274 B
Rust
Raw Normal View History

2021-08-18 04:05:59 -05:00
// --force-warn $LINT causes $LINT (which is warn-by-default) to warn
// despite $LINT being allowed in module
// compile-flags: --force-warn dead_code
2021-05-27 12:19:39 -05:00
// check-pass
#![allow(dead_code)]
fn dead_function() {}
//~^ WARN function `dead_function` is never used
2021-05-27 12:19:39 -05:00
fn main() {}