mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-17 01:13:11 +00:00
add test for stripped nested outline module
This commit is contained in:
parent
31ee8e0a43
commit
a6cb04ff23
13
src/test/ui/parser/stripped-nested-outline-mod-pass.rs
Normal file
13
src/test/ui/parser/stripped-nested-outline-mod-pass.rs
Normal file
@ -0,0 +1,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.
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user