rust/tests/ui/check-cfg/cfg-value-for-cfg-name-duplicate.rs
2024-02-16 20:02:50 +00:00

13 lines
408 B
Rust

// #120427
// This test checks we won't suggest more than 3 span suggestions for cfg names
//
//@ check-pass
//@ compile-flags: -Z unstable-options
//@ 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() {}