about summary refs log tree commit diff
path: root/tests/ui/parser/stripped-nested-outline-mod-pass.rs
blob: 166a60f257a3325f6e7a50f7d6f916460a0794c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Expansion drives parsing, so conditional compilation will strip
// out outline modules and we will never attempt parsing them.

//@ check-pass

fn main() {}

#[cfg(false)]
mod foo {
    mod bar {
        mod baz; // This was an error before.
    }
}