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