]> git.proxmox.com Git - rustc.git/blame - tests/ui/check-cfg/invalid-cfg-value.rs
New upstream version 1.74.1+dfsg1
[rustc.git] / tests / ui / check-cfg / invalid-cfg-value.rs
CommitLineData
5099ac24
FG
1// Check warning for invalid configuration value
2//
3// edition:2018
4// check-pass
5// compile-flags: --check-cfg=values(feature,"serde","full") --cfg=feature="rand" -Z unstable-options
6
7#[cfg(feature = "sedre")]
8//~^ WARNING unexpected `cfg` condition value
9pub fn f() {}
10
11#[cfg(feature = "serde")]
12pub fn g() {}
13
14#[cfg(feature = "rand")]
064997fb 15//~^ WARNING unexpected `cfg` condition value
5099ac24
FG
16pub fn h() {}
17
18pub fn main() {}