]> git.lizzy.rs Git - rust.git/blob - src/test/ui/crate-method-reexport-grrrrrrr.rs
Merge pull request #16 from ian-h-chamberlain/feature/target-thread-local
[rust.git] / src / test / ui / crate-method-reexport-grrrrrrr.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 // This is a regression test that the metadata for the
5 // name_pool::methods impl in the other crate is reachable from this
6 // crate.
7
8 // aux-build:crate-method-reexport-grrrrrrr2.rs
9
10 extern crate crate_method_reexport_grrrrrrr2;
11
12 pub fn main() {
13     use crate_method_reexport_grrrrrrr2::rust::add;
14     use crate_method_reexport_grrrrrrr2::rust::cx;
15     let x: Box<_> = Box::new(());
16     x.cx();
17     let y = ();
18     y.add("hi".to_string());
19 }