mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-17 20:06:38 +00:00
18 lines
312 B
Rust
18 lines
312 B
Rust
// 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() {}
|