mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
22 lines
445 B
Rust
22 lines
445 B
Rust
//@ check-fail
|
|
|
|
#![allow(unexpected_cfgs)] // invalid cfgs
|
|
|
|
#[cfg(any(foo, foo::bar))]
|
|
//~^ERROR `cfg` predicate key must be an identifier
|
|
fn foo1() {}
|
|
|
|
#[cfg(any(foo::bar, foo))]
|
|
//~^ERROR `cfg` predicate key must be an identifier
|
|
fn foo2() {}
|
|
|
|
#[cfg(all(foo, foo::bar))]
|
|
//~^ERROR `cfg` predicate key must be an identifier
|
|
fn foo3() {}
|
|
|
|
#[cfg(all(foo::bar, foo))]
|
|
//~^ERROR `cfg` predicate key must be an identifier
|
|
fn foo4() {}
|
|
|
|
fn main() {}
|