mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
517374150c
this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
16 lines
322 B
Rust
16 lines
322 B
Rust
// Check that we detect unexpected value when none are allowed
|
|
//
|
|
//@ check-pass
|
|
//@ no-auto-check-cfg
|
|
//@ compile-flags: --check-cfg=cfg(foo,values())
|
|
|
|
#[cfg(foo = "foo")]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
fn do_foo() {}
|
|
|
|
#[cfg(foo)]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
fn do_foo() {}
|
|
|
|
fn main() {}
|