mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 19:04:21 +00:00

this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
17 lines
432 B
Rust
17 lines
432 B
Rust
//@ check-pass
|
|
//
|
|
//@ no-auto-check-cfg
|
|
//@ revisions: values_before values_after
|
|
//@ compile-flags: --check-cfg=cfg(values_before,values_after)
|
|
//@ [values_before]compile-flags: --check-cfg=cfg(a,values("b")) --check-cfg=cfg(a)
|
|
//@ [values_after]compile-flags: --check-cfg=cfg(a) --check-cfg=cfg(a,values("b"))
|
|
|
|
#[cfg(a)]
|
|
fn my_cfg() {}
|
|
|
|
#[cfg(a = "unk")]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
fn my_cfg() {}
|
|
|
|
fn main() {}
|