rust/src/test/ui/check-cfg/no-values.rs

11 lines
246 B
Rust
Raw Normal View History

// Check that we detect unexpected value when none are allowed
//
// check-pass
// compile-flags: --check-cfg=values(feature) -Z unstable-options
#[cfg(feature = "foo")]
//~^ WARNING unexpected `cfg` condition value
fn do_foo() {}
fn main() {}