mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
15 lines
264 B
Rust
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() {}
|