2012-07-11 20:38:12 -05:00
|
|
|
#[link(name = "crate_method_reexport_grrrrrrr2")];
|
|
|
|
|
|
|
|
export rust;
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
import name_pool::add;
|
2012-07-11 20:38:12 -05:00
|
|
|
import name_pool::methods;
|
|
|
|
|
|
|
|
mod name_pool {
|
|
|
|
|
|
|
|
type name_pool = ();
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
trait add {
|
|
|
|
fn add(s: ~str);
|
|
|
|
}
|
|
|
|
|
|
|
|
impl methods of add for name_pool {
|
2012-07-14 00:57:48 -05:00
|
|
|
fn add(s: ~str) {
|
2012-07-11 20:38:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod rust {
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
import name_pool::add;
|
|
|
|
export add;
|
2012-07-11 20:38:12 -05:00
|
|
|
export rt;
|
|
|
|
export methods;
|
2012-07-11 17:00:40 -05:00
|
|
|
export cx;
|
2012-07-11 20:38:12 -05:00
|
|
|
|
|
|
|
type rt = @();
|
|
|
|
|
2012-07-11 17:00:40 -05:00
|
|
|
trait cx {
|
|
|
|
fn cx();
|
|
|
|
}
|
|
|
|
|
|
|
|
impl methods of cx for rt {
|
2012-07-11 20:38:12 -05:00
|
|
|
fn cx() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|