blob: 430d3b89e7abd3661a1f2b4ac43224db31554473 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// Check warning for unexpected cfg value
//
// check-pass
// revisions: empty_cfg without_names
// [empty_cfg]compile-flags: --check-cfg=cfg() -Z unstable-options
// [without_names]compile-flags: --check-cfg=cfg(any()) -Z unstable-options
#[cfg(test = "value")]
//~^ WARNING unexpected `cfg` condition value
pub fn f() {}
fn main() {}
|