2022-02-19 18:26:52 -06:00
|
|
|
// Check that we detect unexpected value when none are allowed
|
|
|
|
//
|
|
|
|
// check-pass
|
2022-03-03 08:56:19 -06:00
|
|
|
// compile-flags: --check-cfg=values(test) --check-cfg=values(feature) -Z unstable-options
|
2022-02-19 18:26:52 -06:00
|
|
|
|
|
|
|
#[cfg(feature = "foo")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
fn do_foo() {}
|
|
|
|
|
2022-03-03 08:56:19 -06:00
|
|
|
#[cfg(test = "foo")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
fn do_foo() {}
|
|
|
|
|
2022-02-19 18:26:52 -06:00
|
|
|
fn main() {}
|