mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-19 09:33:36 +00:00
18 lines
497 B
Rust
18 lines
497 B
Rust
|
#![warn(clippy::duplicated_attributes)]
|
||
|
#![cfg(any(unix, windows))]
|
||
|
#![allow(dead_code)]
|
||
|
#![allow(dead_code)] //~ ERROR: duplicated attribute
|
||
|
#![cfg(any(unix, windows))]
|
||
|
//~^ ERROR: duplicated attribute
|
||
|
//~| ERROR: duplicated attribute
|
||
|
|
||
|
#[cfg(any(unix, windows, target_os = "linux"))]
|
||
|
#[allow(dead_code)]
|
||
|
#[allow(dead_code)] //~ ERROR: duplicated attribute
|
||
|
#[cfg(any(unix, windows, target_os = "linux"))]
|
||
|
//~^ ERROR: duplicated attribute
|
||
|
//~| ERROR: duplicated attribute
|
||
|
fn foo() {}
|
||
|
|
||
|
fn main() {}
|