blob: 8499d3d4448da583454bdba3f996aceed2a19a57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// Check warning for invalid configuration name
//
// edition:2018
// check-pass
// compile-flags: --check-cfg=names() -Z unstable-options
#[cfg(widnows)]
//~^ WARNING unexpected `cfg` condition name
pub fn f() {}
#[cfg(windows)]
pub fn g() {}
pub fn main() {}
|