2017-06-23 21:22:06 -05:00
|
|
|
// Forbidding a group (here, `unused`) overrules subsequent allowance of both
|
|
|
|
// the group, and an individual lint in the group (here, `unused_variables`);
|
|
|
|
// and, forbidding an individual lint (here, `non_snake_case`) overrules
|
2018-08-29 08:21:01 -05:00
|
|
|
// subsequent allowance of a lint group containing it (here, `nonstandard_style`). See
|
2017-06-23 21:22:06 -05:00
|
|
|
// Issue #42873.
|
|
|
|
|
|
|
|
#![forbid(unused, non_snake_case)]
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
#[allow(unused_variables)] //~ ERROR overruled
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR overruled
|
|
|
|
//~| ERROR overruled
|
2017-07-26 23:51:09 -05:00
|
|
|
fn foo() {}
|
|
|
|
|
2017-11-20 06:13:27 -06:00
|
|
|
#[allow(unused)] //~ ERROR overruled
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR overruled
|
|
|
|
//~| ERROR overruled
|
2017-07-26 23:51:09 -05:00
|
|
|
fn bar() {}
|
|
|
|
|
2018-08-29 08:21:01 -05:00
|
|
|
#[allow(nonstandard_style)] //~ ERROR overruled
|
2020-01-08 11:02:10 -06:00
|
|
|
//~| ERROR overruled
|
|
|
|
//~| ERROR overruled
|
2017-06-23 21:22:06 -05:00
|
|
|
fn main() {
|
|
|
|
println!("hello forbidden world")
|
|
|
|
}
|