Files
rust/tests/ui/cfg/raw-true-false.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
387 B
Rust
Raw Normal View History

//@ check-pass
2025-03-21 05:09:57 +00:00
//@ revisions: r0x0 r0x1 r1x0 r1x1
//@[r0x0] compile-flags: --cfg false --check-cfg=cfg(false)
//@[r0x1] compile-flags: --cfg false --check-cfg=cfg(r#false)
//@[r1x0] compile-flags: --cfg r#false --check-cfg=cfg(false)
//@[r1x1] compile-flags: --cfg r#false --check-cfg=cfg(r#false)
#![deny(unexpected_cfgs)]
fn main() {
2025-03-21 05:09:57 +00:00
#[cfg(not(r#false))]
compile_error!("");
}