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

13 lines
326 B
Rust
Raw Normal View History

2021-08-18 09:05:59 +00:00
// --force-warn $LINT_GROUP causes $LINT in $LINT_GROUP to warn
// despite all warnings being allowed in module
// warn-by-default lint to warn
//@ compile-flags: --force-warn nonstandard_style
//@ check-pass
2021-06-02 15:09:07 +00:00
#![allow(warnings)]
pub fn FUNCTION() {}
//~^ WARN function `FUNCTION` should have a snake case name
fn main() {}