2024-02-16 20:02:50 +00:00
|
|
|
//@ check-fail
|
2022-04-25 12:07:21 +02:00
|
|
|
|
|
|
|
|
#![feature(cfg_target_compact)]
|
|
|
|
|
|
|
|
|
|
#[cfg(target(o::o))]
|
2025-07-07 09:10:38 +02:00
|
|
|
//~^ ERROR malformed `cfg` attribute input
|
2022-04-25 12:07:21 +02:00
|
|
|
fn one() {}
|
|
|
|
|
|
|
|
|
|
#[cfg(target(os = 8))]
|
2025-07-07 09:10:38 +02:00
|
|
|
//~^ ERROR malformed `cfg` attribute input
|
2022-04-25 12:07:21 +02:00
|
|
|
fn two() {}
|
|
|
|
|
|
|
|
|
|
#[cfg(target(os = "linux", pointer(width = "64")))]
|
2025-07-07 09:10:38 +02:00
|
|
|
//~^ ERROR malformed `cfg` attribute input
|
2022-04-25 12:07:21 +02:00
|
|
|
fn three() {}
|
|
|
|
|
|
2024-10-16 09:41:49 +02:00
|
|
|
#[cfg(target(true))]
|
2025-07-07 09:10:38 +02:00
|
|
|
//~^ ERROR malformed `cfg` attribute input
|
2024-10-16 09:41:49 +02:00
|
|
|
fn four() {}
|
|
|
|
|
|
2025-07-07 09:10:38 +02:00
|
|
|
#[cfg(target(clippy::os = "linux"))]
|
|
|
|
|
//~^ ERROR `cfg` predicate key must be an identifier
|
|
|
|
|
fn five() {}
|
|
|
|
|
|
2022-04-25 12:07:21 +02:00
|
|
|
fn main() {}
|