2012-07-11 18:38:12 -07:00
|
|
|
#[link(name = "crate_method_reexport_grrrrrrr2")];
|
|
|
|
|
|
|
|
export rust;
|
|
|
|
|
2012-09-05 12:32:05 -07:00
|
|
|
use name_pool::add;
|
2012-07-11 18:38:12 -07:00
|
|
|
|
|
|
|
mod name_pool {
|
|
|
|
|
|
|
|
type name_pool = ();
|
|
|
|
|
2012-07-11 15:00:40 -07:00
|
|
|
trait add {
|
|
|
|
fn add(s: ~str);
|
|
|
|
}
|
|
|
|
|
2012-08-07 18:10:06 -07:00
|
|
|
impl name_pool: add {
|
2012-07-13 22:57:48 -07:00
|
|
|
fn add(s: ~str) {
|
2012-07-11 18:38:12 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod rust {
|
|
|
|
|
2012-07-11 15:00:40 -07:00
|
|
|
import name_pool::add;
|
2012-08-07 18:10:06 -07:00
|
|
|
// FIXME #3155: this is a hack
|
|
|
|
import name_pool::__extensions__;
|
2012-07-11 15:00:40 -07:00
|
|
|
export add;
|
2012-07-11 18:38:12 -07:00
|
|
|
export rt;
|
2012-07-11 15:00:40 -07:00
|
|
|
export cx;
|
2012-07-11 18:38:12 -07:00
|
|
|
|
|
|
|
type rt = @();
|
|
|
|
|
2012-07-11 15:00:40 -07:00
|
|
|
trait cx {
|
|
|
|
fn cx();
|
|
|
|
}
|
|
|
|
|
2012-08-07 18:10:06 -07:00
|
|
|
impl rt: cx {
|
2012-07-11 18:38:12 -07:00
|
|
|
fn cx() {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|