rust/tests/ui/attributes/z-crate-attr/cfg-false.rs

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

8 lines
216 B
Rust
Raw Normal View History

2025-03-29 17:24:03 +00:00
// Ensure that `-Z crate-attr=cfg(false)` can comment out the whole crate
//@ compile-flags: --crate-type=lib -Zcrate-attr=cfg(false)
2025-03-10 23:25:22 -04:00
//@ check-pass
// NOTE: duplicate items are load-bearing
fn foo() {}
fn foo() {}