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() {}
|