about summary refs log tree commit diff
path: root/tests/ui/cross-crate/cross-crate-method-reexport.rs
blob: e9eab99e21453a0ae35ee06cd377156d08a9b9a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ run-pass

// This is a regression test that the metadata for the
// name_pool::methods impl in the other crate is reachable from this
// crate.

//@ aux-build:method_reexport_aux.rs

extern crate method_reexport_aux;

pub fn main() {
    use method_reexport_aux::rust::add;
    use method_reexport_aux::rust::cx;
    let x: Box<_> = Box::new(());
    x.cx();
    let y = ();
    y.add("hi".to_string());
}