mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
21 lines
509 B
Rust
21 lines
509 B
Rust
// Check for unexpected configuration value in the code.
|
|
//
|
|
// check-pass
|
|
// revisions: values cfg
|
|
// compile-flags: -Z unstable-options
|
|
// [values]compile-flags: --check-cfg=values(feature,"serde","full")
|
|
// [cfg]compile-flags: --check-cfg=cfg(feature,values("serde","full"))
|
|
|
|
#[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() {}
|