Files
rust/tests/ui/parser/stripped-nested-outline-mod-pass.rs

14 lines
253 B
Rust
Raw Normal View History

// Expansion drives parsing, so conditional compilation will strip
// out outline modules and we will never attempt parsing them.
//@ check-pass
fn main() {}
2025-03-29 17:24:03 +00:00
#[cfg(false)]
mod foo {
mod bar {
mod baz; // This was an error before.
}
}