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-10-14 23:05:01 -07:00
|
|
|
#![crate_name="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 {
|
2014-05-22 16:57:53 -07:00
|
|
|
fn add(&self, s: String);
|
2012-07-11 15:00:40 -07:00
|
|
|
}
|
|
|
|
|
2013-02-26 17:12:00 -08:00
|
|
|
impl add for name_pool {
|
2014-05-22 16:57:53 -07:00
|
|
|
fn add(&self, _s: String) {
|
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
|
|
|
|
2014-10-02 08:10:09 +03:00
|
|
|
pub type rt = Box<()>;
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|