2021-09-28 19:39:30 -05:00
|
|
|
// Check warning for invalid configuration value
|
|
|
|
//
|
|
|
|
// edition:2018
|
|
|
|
// check-pass
|
|
|
|
// compile-flags: --check-cfg=values(feature,"serde","full") --cfg=feature="rand" -Z unstable-options
|
|
|
|
|
|
|
|
#[cfg(feature = "sedre")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
pub fn f() {}
|
|
|
|
|
|
|
|
#[cfg(feature = "serde")]
|
|
|
|
pub fn g() {}
|
|
|
|
|
|
|
|
#[cfg(feature = "rand")]
|
2022-07-20 10:31:15 -05:00
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
2021-09-28 19:39:30 -05:00
|
|
|
pub fn h() {}
|
|
|
|
|
|
|
|
pub fn main() {}
|