mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
15 lines
319 B
Rust
15 lines
319 B
Rust
// Check that we detect unexpected value when none are allowed
|
|
//
|
|
//@ check-pass
|
|
//@ compile-flags: --check-cfg=cfg(foo,values()) -Zunstable-options
|
|
|
|
#[cfg(foo = "foo")]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
fn do_foo() {}
|
|
|
|
#[cfg(foo)]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
fn do_foo() {}
|
|
|
|
fn main() {}
|