summaryrefslogtreecommitdiffstats
path: root/tests/ui/check-cfg/unexpected-cfg-name.rs
blob: 15c3aa6e0812206a97dd92cdd71b3d8d16add2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Check warning for unexpected configuration name
//
// check-pass
// revisions: names exhaustive
// compile-flags: --check-cfg=cfg(names,exhaustive)
// [names]compile-flags: --check-cfg=names() -Z unstable-options
// [exhaustive]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() {}