2025-06-06 23:29:49 +05:00
|
|
|
//! Used by `tests/ui/cross-crate/cross-crate-method-reexport.rs`
|
|
|
|
|
|
|
|
|
|
#![crate_name="method_reexport_aux"]
|
2016-04-26 10:51:14 -07:00
|
|
|
|
|
|
|
|
pub use name_pool::add;
|
|
|
|
|
|
|
|
|
|
pub mod name_pool {
|
|
|
|
|
pub type name_pool = ();
|
|
|
|
|
|
|
|
|
|
pub trait add {
|
|
|
|
|
fn add(&self, s: String);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl add for name_pool {
|
|
|
|
|
fn add(&self, _s: String) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
pub mod rust {
|
2025-06-02 10:11:10 +02:00
|
|
|
pub use crate::name_pool::add;
|
2016-04-26 10:51:14 -07:00
|
|
|
|
|
|
|
|
pub type rt = Box<()>;
|
|
|
|
|
|
|
|
|
|
pub trait cx {
|
|
|
|
|
fn cx(&self);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
impl cx for rt {
|
|
|
|
|
fn cx(&self) {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|