]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-glob-1.rs
Rollup merge of #106661 - mjguzik:linux_statx, r=Mark-Simulacrum
[rust.git] / tests / ui / imports / import-glob-1.rs
1 // run-pass
2 #![allow(dead_code)]
3 #![allow(unused_imports)]
4 // This should resolve fine. Prior to fix, the last import
5 // was being tried too early, and marked as unrsolved before
6 // the glob import had a chance to be resolved.
7
8 mod bar {
9     pub use self::middle::*;
10
11     mod middle {
12         pub use self::baz::Baz;
13
14         mod baz {
15             pub enum Baz {
16                 Baz1,
17                 Baz2
18             }
19         }
20     }
21 }
22
23 mod foo {
24     use bar::Baz::{Baz1, Baz2};
25 }
26
27 fn main() {}