2012-12-10 19:32:48 -06: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-10-15 01:05:01 -05:00
|
|
|
#![crate_name="crate_method_reexport_grrrrrrr2"]
|
2012-07-11 20:38:12 -05:00
|
|
|
|
2013-01-30 17:56:40 -06:00
|
|
|
pub use name_pool::add;
|
2012-07-11 20:38:12 -05:00
|
|
|
|
2013-01-30 17:56:40 -06:00
|
|
|
pub mod name_pool {
|
2013-01-30 16:30:22 -06:00
|
|
|
pub type name_pool = ();
|
2012-07-11 20:38:12 -05:00
|
|
|
|
2013-01-30 16:30:22 -06:00
|
|
|
pub trait add {
|
2014-05-22 18:57:53 -05:00
|
|
|
fn add(&self, s: String);
|
2012-07-11 17:00:40 -05:00
|
|
|
}
|
|
|
|
|
2013-02-26 19:12:00 -06:00
|
|
|
impl add for name_pool {
|
2014-05-22 18:57:53 -05:00
|
|
|
fn add(&self, _s: String) {
|
2012-07-11 20:38:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-01-30 16:30:22 -06:00
|
|
|
pub mod rust {
|
2013-01-30 17:56:40 -06:00
|
|
|
pub use name_pool::add;
|
2012-07-11 20:38:12 -05:00
|
|
|
|
2014-10-02 00:10:09 -05:00
|
|
|
pub type rt = Box<()>;
|
2012-07-11 20:38:12 -05:00
|
|
|
|
2013-01-30 16:30:22 -06:00
|
|
|
pub trait cx {
|
2013-03-12 21:32:14 -05:00
|
|
|
fn cx(&self);
|
2012-07-11 17:00:40 -05:00
|
|
|
}
|
|
|
|
|
2013-02-26 19:12:00 -06:00
|
|
|
impl cx for rt {
|
2013-03-12 21:32:14 -05:00
|
|
|
fn cx(&self) {
|
2012-07-11 20:38:12 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|