about summary refs log tree commit diff
path: root/tests/ui/check-cfg/unexpected-cfg-name.rs
blob: af91db745e841d85e0684480e3c271575e82a36b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Check warning for unexpected configuration name
//
//@ check-pass
//@ no-auto-check-cfg
//@ compile-flags: --check-cfg=cfg()

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

#[cfg(test)]
//~^ WARNING unexpected `cfg` condition name

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

pub fn main() {}