2012-12-10 17:32:48 -08:00
|
|
|
// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
|
|
|
|
// file at the top-level directory of this distribution and at
|
|
|
|
// http://rust-lang.org/COPYRIGHT.
|
|
|
|
//
|
|
|
|
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
|
|
|
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
|
|
|
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
|
|
|
// option. This file may not be copied, modified, or distributed
|
|
|
|
// except according to those terms.
|
|
|
|
|
2014-04-14 21:00:31 +05:30
|
|
|
#![feature(managed_boxes)]
|
|
|
|
#![crate_id="crate_method_reexport_grrrrrrr2"]
|
2012-07-11 18:38:12 -07:00
|
|
|
|
2013-01-30 15:56:40 -08:00
|
|
|
pub use name_pool::add;
|
2012-07-11 18:38:12 -07:00
|
|
|
|
2013-01-30 15:56:40 -08:00
|
|
|
pub mod name_pool {
|
2013-01-30 14:30:22 -08:00
|
|
|
pub type name_pool = ();
|
2012-07-11 18:38:12 -07:00
|
|
|
|
2013-01-30 14:30:22 -08:00
|
|
|
pub trait add {
|
2013-03-12 19:32:14 -07:00
|
|
|
fn add(&self, s: ~str);
|
2012-07-11 15:00:40 -07:00
|
|
|
}
|
|
|
|
|
2013-02-26 17:12:00 -08:00
|
|
|
impl add for name_pool {
|
2013-08-17 08:37:42 -07:00
|
|
|
fn add(&self, _s: ~str) {
|
2012-07-11 18:38:12 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-30 14:30:22 -08:00
|
|
|
pub mod rust {
|
2013-01-30 15:56:40 -08:00
|
|
|
pub use name_pool::add;
|
2012-07-11 18:38:12 -07:00
|
|
|
|
2013-01-30 14:30:22 -08:00
|
|
|
pub type rt = @();
|
2012-07-11 18:38:12 -07:00
|
|
|
|
2013-01-30 14:30:22 -08:00
|
|
|
pub trait cx {
|
2013-03-12 19:32:14 -07:00
|
|
|
fn cx(&self);
|
2012-07-11 15:00:40 -07:00
|
|
|
}
|
|
|
|
|
2013-02-26 17:12:00 -08:00
|
|
|
impl cx for rt {
|
2013-03-12 19:32:14 -07:00
|
|
|
fn cx(&self) {
|
2012-07-11 18:38:12 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|