about summary refs log tree commit diff
path: root/tests/ui/parser/stripped-nested-outline-mod-pass.rs
blob: 8909d8ae0eb63ce43f13927ec3da3ca1ea506c2d (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.
    }
}