1 // This test checks that we lint on non well known names and that we don't lint on well known names
4 // compile-flags: --check-cfg=names() -Z unstable-options
6 #[cfg(target_oz = "linux")]
7 //~^ WARNING unexpected `cfg` condition name
8 fn target_os_misspell() {}
10 #[cfg(target_os = "linux")]
13 #[cfg(features = "foo")]
14 //~^ WARNING unexpected `cfg` condition name
15 fn feature_misspell() {}
17 #[cfg(feature = "foo")]
21 //~^ WARNING unexpected `cfg` condition name