mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
19 lines
416 B
Rust
19 lines
416 B
Rust
// 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")]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
pub fn h() {}
|
|
|
|
pub fn main() {}
|