2024-01-30 02:54:40 -06:00
|
|
|
// #120427
|
|
|
|
// This test checks we won't suggest more than 3 span suggestions for cfg names
|
|
|
|
//
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ check-pass
|
2024-04-09 07:07:30 -05:00
|
|
|
//@ no-auto-check-cfg
|
2024-02-16 14:02:50 -06:00
|
|
|
//@ compile-flags: --check-cfg=cfg(foo,values("value")) --check-cfg=cfg(bar,values("value")) --check-cfg=cfg(bee,values("value")) --check-cfg=cfg(cow,values("value"))
|
2024-01-30 02:54:40 -06:00
|
|
|
|
|
|
|
#[cfg(value)]
|
|
|
|
//~^ WARNING unexpected `cfg` condition name: `value`
|
|
|
|
fn x() {}
|
|
|
|
|
|
|
|
fn main() {}
|