]> git.proxmox.com Git - rustc.git/blob - src/test/ui/cfg/cfg-target-compact-errors.rs
New upstream version 1.63.0+dfsg1
[rustc.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() {}