2022-02-23 08:44:57 -06:00
|
|
|
//@ check-fail
|
|
|
|
|
2024-04-06 17:33:37 -05:00
|
|
|
#![allow(unexpected_cfgs)] // invalid cfgs
|
|
|
|
|
2022-02-23 08:44:57 -06:00
|
|
|
#[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() {}
|