]> git.proxmox.com Git - rustc.git/blob - src/test/ui/use-keyword-2.rs
New upstream version 1.38.0+dfsg1
[rustc.git] / src / test / ui / use-keyword-2.rs
1 // run-pass
2
3 #![allow(unused_variables)]
4 pub struct A;
5
6 mod test {
7 pub use super :: A;
8
9 pub use self :: A as B;
10 }
11
12 impl A {
13 fn f() {}
14 fn g() {
15 Self :: f()
16 }
17 }
18
19 fn main() {
20 let a: A = test::A;
21 let b: A = test::B;
22 let c: () = A::g();
23 }