mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 01:05:39 +03:00
090dad00a9
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
26 lines
500 B
Rust
26 lines
500 B
Rust
//@ check-fail
|
|
|
|
#![feature(cfg_target_compact)]
|
|
|
|
#[cfg(target(o::o))]
|
|
//~^ ERROR malformed `cfg` attribute input
|
|
fn one() {}
|
|
|
|
#[cfg(target(os = 8))]
|
|
//~^ ERROR malformed `cfg` attribute input
|
|
fn two() {}
|
|
|
|
#[cfg(target(os = "linux", pointer(width = "64")))]
|
|
//~^ ERROR malformed `cfg` attribute input
|
|
fn three() {}
|
|
|
|
#[cfg(target(true))]
|
|
//~^ ERROR malformed `cfg` attribute input
|
|
fn four() {}
|
|
|
|
#[cfg(target(clippy::os = "linux"))]
|
|
//~^ ERROR malformed `cfg` attribute input
|
|
fn five() {}
|
|
|
|
fn main() {}
|