mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 00:03:43 +00:00
17 lines
409 B
Rust
17 lines
409 B
Rust
// 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() {}
|