mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 05:03:21 +00:00
23 lines
1 KiB
Rust
23 lines
1 KiB
Rust
//@no-rustfix
|
|
|
|
#![warn(clippy::unnecessary_clippy_cfg)]
|
|
#![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
#![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
#![cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
#![cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
|
|
#[cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
#[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
#[cfg_attr(clippy, deny(dead_code, clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
#[cfg_attr(clippy, deny(clippy::non_minimal_cfg))]
|
|
//~^ ERROR: no need to put clippy lints behind a `clippy` cfg
|
|
pub struct Bar;
|
|
|
|
fn main() {}
|