]> git.proxmox.com Git - rustc.git/blob - src/test/run-pass/issues/issue-26873-onefile.rs
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / test / run-pass / issues / issue-26873-onefile.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // run-pass
12 #![allow(dead_code)]
13 #![allow(unused_imports)]
14 #![allow(non_snake_case)]
15
16 mod A {
17 pub mod B {
18 use super::*;
19
20 pub struct S;
21 }
22
23 pub mod C {
24 use super::*;
25 use super::B::S;
26
27 pub struct T;
28 }
29
30 pub use self::C::T;
31 }
32
33 use A::*;
34
35 fn main() {}
36