2023-05-01 14:16:38 +02:00
|
|
|
// Check warning for unexpected cfg value
|
|
|
|
//
|
|
|
|
// check-pass
|
2023-11-16 18:41:45 +01:00
|
|
|
// revisions: empty_cfg without_names
|
2023-05-01 14:16:38 +02:00
|
|
|
// [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() {}
|