2023-11-02 11:06:32 -05:00
|
|
|
// Check for unexpected configuration value in the code.
|
2023-05-01 07:16:38 -05:00
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-04-09 07:07:30 -05:00
|
|
|
//@ no-auto-check-cfg
|
2024-02-25 07:56:14 -06:00
|
|
|
//@ compile-flags: --cfg=feature="rand"
|
2023-11-16 11:41:45 -06:00
|
|
|
//@ compile-flags: --check-cfg=cfg(feature,values("serde","full"))
|
2023-05-01 07:16:38 -05:00
|
|
|
|
|
|
|
#[cfg(feature = "sedre")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
pub fn f() {}
|
|
|
|
|
|
|
|
#[cfg(feature = "serde")]
|
|
|
|
pub fn g() {}
|
|
|
|
|
|
|
|
#[cfg(feature = "rand")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
pub fn h() {}
|
|
|
|
|
|
|
|
pub fn main() {}
|