]> git.lizzy.rs Git - rust.git/blob - tests/ui/check-cfg/invalid-cfg-name.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / ui / check-cfg / invalid-cfg-name.rs
1 // Check warning for invalid configuration name
2 //
3 // edition:2018
4 // check-pass
5 // compile-flags: --check-cfg=names() -Z unstable-options
6
7 #[cfg(widnows)]
8 //~^ WARNING unexpected `cfg` condition name
9 pub fn f() {}
10
11 #[cfg(windows)]
12 pub fn g() {}
13
14 pub fn main() {}