]> git.lizzy.rs Git - rust.git/blob - tests/ui/auxiliary/crate-method-reexport-grrrrrrr2.rs
Auto merge of #106711 - albertlarsan68:use-ci-llvm-when-lld, r=jyn514
[rust.git] / tests / ui / auxiliary / crate-method-reexport-grrrrrrr2.rs
1 #![crate_name="crate_method_reexport_grrrrrrr2"]
2
3 pub use name_pool::add;
4
5 pub mod name_pool {
6     pub type name_pool = ();
7
8     pub trait add {
9         fn add(&self, s: String);
10     }
11
12     impl add for name_pool {
13         fn add(&self, _s: String) {
14         }
15     }
16 }
17
18 pub mod rust {
19     pub use name_pool::add;
20
21     pub type rt = Box<()>;
22
23     pub trait cx {
24         fn cx(&self);
25     }
26
27     impl cx for rt {
28         fn cx(&self) {
29         }
30     }
31 }