2024-01-27 21:13:02 -06:00
|
|
|
// #120427
|
|
|
|
// This test checks that when a single cfg has a value for user's specified name
|
|
|
|
//
|
|
|
|
//@ check-pass
|
2024-04-09 07:07:30 -05:00
|
|
|
//@ no-auto-check-cfg
|
2024-01-27 21:13:02 -06:00
|
|
|
//@ compile-flags: --check-cfg=cfg(foo,values("my_value")) --check-cfg=cfg(bar,values("my_value"))
|
|
|
|
|
|
|
|
#[cfg(my_value)]
|
|
|
|
//~^ WARNING unexpected `cfg` condition name: `my_value`
|
|
|
|
fn x() {}
|
|
|
|
|
|
|
|
fn main() {}
|