mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 17:24:06 +00:00
14 lines
249 B
Rust
14 lines
249 B
Rust
// 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() {}
|