mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
17 lines
359 B
Rust
17 lines
359 B
Rust
//@ 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() {}
|