]> git.lizzy.rs Git - rust.git/blob - tests/ui/use-keyword-2.rs
Rollup merge of #107615 - notriddle:notriddle/nbsp, r=GuillaumeGomez
[rust.git] / tests / 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 }