rust/tests/ui/cfg/cfg-false-use-item.rs
2025-06-11 20:51:49 +05:00

10 lines
248 B
Rust

//! Test that use items with cfg(false) are properly filtered out
//@ run-pass
pub fn main() {
// Make sure that this view item is filtered out because otherwise it would
// trigger a compilation error
#[cfg(false)] use bar as foo;
}