mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-30 10:45:18 +00:00
517374150c
this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
13 lines
391 B
Rust
13 lines
391 B
Rust
// #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() {}
|