about summary refs log tree commit diff
path: root/tests/ui/check-cfg/empty-values.rs
blob: cad2d351b9620922c8c52821c0d5dbc60947d534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Check that we detect unexpected value when none are allowed
//
//@ check-pass
//@ 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() {}