]> git.lizzy.rs Git - rust.git/blob - src/test/ui/check-cfg/empty-values.rs
Auto merge of #106143 - matthiaskrgr:rollup-3kpy1dc, r=matthiaskrgr
[rust.git] / src / test / ui / check-cfg / empty-values.rs
1 // Check warning for unexpected cfg value
2 //
3 // check-pass
4 // compile-flags: --check-cfg=values() -Z unstable-options
5
6 #[cfg(test = "value")]
7 //~^ WARNING unexpected `cfg` condition value
8 pub fn f() {}
9
10 fn main() {}