summaryrefslogtreecommitdiffstats
path: root/tests/ui/check-cfg/unexpected-cfg-name.rs
blob: 9fc0e28a8fec0774bdb973fa3b54a33349c2c89f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Check warning for unexpected configuration name
//
// check-pass
// compile-flags: --check-cfg=cfg() -Z unstable-options

#[cfg(widnows)]
//~^ WARNING unexpected `cfg` condition name
pub fn f() {}

#[cfg(windows)]
pub fn g() {}

pub fn main() {}