2023-05-01 07:16:38 -05:00
|
|
|
// Check warning for unexpected cfg value
|
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-04-09 07:07:30 -05:00
|
|
|
//@ no-auto-check-cfg
|
2023-11-16 11:41:45 -06:00
|
|
|
//@ revisions: empty_cfg without_names
|
2024-02-25 07:56:14 -06:00
|
|
|
//@ [empty_cfg]compile-flags: --check-cfg=cfg()
|
|
|
|
//@ [without_names]compile-flags: --check-cfg=cfg(any())
|
2023-05-01 07:16:38 -05:00
|
|
|
|
|
|
|
#[cfg(test = "value")]
|
|
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
|
|
pub fn f() {}
|
|
|
|
|
|
|
|
fn main() {}
|