mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
517374150c
this directive prevents compiletest from adding any implicit and automatic --check-cfg arguments
10 lines
204 B
Rust
10 lines
204 B
Rust
// This test check that #![allow(unexpected_cfgs)] works with --cfg
|
|
//
|
|
//@ check-pass
|
|
//@ no-auto-check-cfg
|
|
//@ compile-flags: --cfg=unexpected --check-cfg=cfg()
|
|
|
|
#![allow(unexpected_cfgs)]
|
|
|
|
fn main() {}
|