mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-30 16:26:10 +00:00
19 lines
410 B
Rust
19 lines
410 B
Rust
//@ 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());
|
|
}
|