2024-02-28 16:25:28 +00:00
|
|
|
#![warn(clippy::duplicated_attributes)]
|
|
|
|
#![cfg(any(unix, windows))]
|
|
|
|
#![allow(dead_code)]
|
|
|
|
#![allow(dead_code)] //~ ERROR: duplicated attribute
|
2024-03-25 11:15:48 +00:00
|
|
|
#![cfg(any(unix, windows))] // Should not warn!
|
2024-02-28 16:25:28 +00:00
|
|
|
|
|
|
|
#[cfg(any(unix, windows, target_os = "linux"))]
|
|
|
|
#[allow(dead_code)]
|
|
|
|
#[allow(dead_code)] //~ ERROR: duplicated attribute
|
2024-03-25 11:15:48 +00:00
|
|
|
#[cfg(any(unix, windows, target_os = "linux"))] // Should not warn!
|
2024-02-28 16:25:28 +00:00
|
|
|
fn foo() {}
|
|
|
|
|
2024-03-25 11:15:48 +00:00
|
|
|
#[cfg(unix)]
|
|
|
|
#[cfg(windows)]
|
|
|
|
#[cfg(unix)] //~ ERROR: duplicated attribute
|
|
|
|
fn bar() {}
|
|
|
|
|
2024-02-28 16:25:28 +00:00
|
|
|
fn main() {}
|