]> git.proxmox.com Git - rustc.git/blob - tests/ui/imports/import-glob-1.rs
New upstream version 1.68.2+dfsg1
[rustc.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() {}