about summary refs log tree commit diff
path: root/tests/ui/cfg/cfg-target-compact-errors.rs
blob: cfb19c58a197d7cd758ac474b4caa06cd87164c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//@ 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 `cfg` predicate key must be an identifier
fn five() {}

fn main() {}