rust/tests/ui/cross-crate/cross-crate-method-reexport.rs
2025-06-08 01:14:05 +05:00

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());
}