2024-01-13 12:18:51 +01:00
|
|
|
// Check that we detect unexpected value when none are allowed
|
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-04-09 14:07:30 +02:00
|
|
|
//@ no-auto-check-cfg
|
2024-02-25 14:56:14 +01:00
|
|
|
//@ compile-flags: --check-cfg=cfg(foo,values())
|
2024-01-13 12:18:51 +01:00
|
|
|
|
|
|
|
#[cfg(foo = "foo")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
fn do_foo() {}
|
|
|
|
|
|
|
|
#[cfg(foo)]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
fn do_foo() {}
|
|
|
|
|
|
|
|
fn main() {}
|