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