]> git.lizzy.rs Git - rust.git/blob - src/test/ui/crate-method-reexport-grrrrrrr.rs
Auto merge of #75936 - sdroege:chunks-exact-construction-bounds-check, r=nagisa
[rust.git] / src / test / ui / crate-method-reexport-grrrrrrr.rs
1 // run-pass
2 // pretty-expanded FIXME #23616
3
4 #![feature(box_syntax)]
5
6 // This is a regression test that the metadata for the
7 // name_pool::methods impl in the other crate is reachable from this
8 // crate.
9
10 // aux-build:crate-method-reexport-grrrrrrr2.rs
11
12 extern crate crate_method_reexport_grrrrrrr2;
13
14 pub fn main() {
15     use crate_method_reexport_grrrrrrr2::rust::add;
16     use crate_method_reexport_grrrrrrr2::rust::cx;
17     let x: Box<_> = box ();
18     x.cx();
19     let y = ();
20     y.add("hi".to_string());
21 }