]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-cfg/empty-values.rs
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / 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() {}