summaryrefslogtreecommitdiffstats
path: root/tests/ui/cfg/cfg-target-compact-errors.rs
blob: bca2275b1a957781988f76268f7590997aba3113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// check-fail

#![feature(cfg_target_compact)]

#[cfg(target(o::o))]
//~^ ERROR `cfg` predicate key must be an identifier
fn one() {}

#[cfg(target(os = 8))]
//~^ ERROR literal in `cfg` predicate value must be a string
fn two() {}

#[cfg(target(os = "linux", pointer(width = "64")))]
//~^ ERROR invalid predicate `target_pointer`
fn three() {}

fn main() {}