about summary refs log tree commit diff
path: root/tests/ui/check-cfg/empty-values.rs
blob: cf7a7d7d1c034ecef3d1ceaea721af33d916a7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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() {}