rust/tests/ui/check-cfg/invalid-cfg-name.rs
2023-01-11 09:32:08 +00:00

15 lines
264 B
Rust

// 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() {}