]> git.lizzy.rs Git - rust.git/blob - src/test/ui/imports/import-glob-1.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / 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() {}