blob: dd82ccd2c5125558415cc2677c2d440427781ea6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
// #120427
// This test checks we won't suggest more than 3 span suggestions for cfg names
//
//@ check-pass
//@ no-auto-check-cfg
//@ 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"))
#[cfg(value)]
//~^ WARNING unexpected `cfg` condition name: `value`
fn x() {}
fn main() {}
|