]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg/cfg-target-compact-errors.rs
Rollup merge of #96768 - m-ou-se:futex-fuchsia, r=tmandry
[rust.git] / src / test / ui / cfg / cfg-target-compact-errors.rs
1 // check-fail
2
3 #![feature(cfg_target_compact)]
4
5 #[cfg(target(o::o))]
6 //~^ ERROR `cfg` predicate key must be an identifier
7 fn one() {}
8
9 #[cfg(target(os = 8))]
10 //~^ ERROR literal in `cfg` predicate value must be a string
11 fn two() {}
12
13 #[cfg(target(os = "linux", pointer(width = "64")))]
14 //~^ ERROR invalid predicate `target_pointer`
15 fn three() {}
16
17 fn main() {}