about summary refs log tree commit diff
path: root/tests/ui/check-cfg/unexpected-cfg-value.rs
blob: 54dce0f0de407a1f37e77f2c186b169c6b7e8e8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Check for unexpected configuration value in the code.
//
// check-pass
// compile-flags: --cfg=feature="rand" -Z unstable-options
// 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() {}