rust/tests/ui/lint/force-warn/allow-warnings.rs

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

12 lines
275 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 allowing all warnings in module
// compile-flags: --force-warn dead_code
2021-05-27 12:19:39 -05:00
// check-pass
#![allow(warnings)]
fn dead_function() {}
//~^ WARN function `dead_function` is never used
2021-05-27 12:19:39 -05:00
fn main() {}