]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/issue-24883.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / imports / issue-24883.rs
1 // check-pass
2
3 mod a {
4     pub mod b { pub struct Foo; }
5
6     pub mod c {
7         use super::b;
8         pub struct Bar(pub b::Foo);
9     }
10
11     pub use self::c::*;
12 }
13
14 fn main() {
15     let _ = a::c::Bar(a::b::Foo);
16     let _ = a::Bar(a::b::Foo);
17 }