mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 05:34:45 +00:00
10 lines
248 B
Rust
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;
|
|
}
|