mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
517374150c
this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
15 lines
253 B
Rust
15 lines
253 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(windows)]
|
|
pub fn g() {}
|
|
|
|
pub fn main() {}
|