2013-08-07 00:11:34 -07:00
|
|
|
// Copyright 2013 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
|
|
|
#![crate_type = "lib"]
|
2013-08-07 00:11:34 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
static private: isize = 0;
|
|
|
|
pub static public: isize = 0;
|
2013-08-07 00:11:34 -07:00
|
|
|
|
|
|
|
pub struct A(());
|
|
|
|
|
|
|
|
impl A {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
mod foo {
|
2015-03-25 17:06:52 -07:00
|
|
|
pub static a: isize = 0;
|
2013-08-07 00:11:34 -07:00
|
|
|
pub fn b() {}
|
|
|
|
pub struct c;
|
|
|
|
pub enum d {}
|
2015-03-25 17:06:52 -07:00
|
|
|
pub type e = isize;
|
2013-08-07 00:11:34 -07:00
|
|
|
|
|
|
|
pub struct A(());
|
|
|
|
|
|
|
|
impl A {
|
|
|
|
fn foo() {}
|
|
|
|
}
|
|
|
|
|
|
|
|
// these are public so the parent can reexport them.
|
2015-03-25 17:06:52 -07:00
|
|
|
pub static reexported_a: isize = 0;
|
2013-08-07 00:11:34 -07:00
|
|
|
pub fn reexported_b() {}
|
|
|
|
pub struct reexported_c;
|
|
|
|
pub enum reexported_d {}
|
2015-03-25 17:06:52 -07:00
|
|
|
pub type reexported_e = isize;
|
2013-08-07 00:11:34 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
pub mod bar {
|
2014-08-12 19:25:05 -07:00
|
|
|
pub use foo::reexported_a as e;
|
|
|
|
pub use foo::reexported_b as f;
|
|
|
|
pub use foo::reexported_c as g;
|
|
|
|
pub use foo::reexported_d as h;
|
2014-09-16 09:13:00 +12:00
|
|
|
pub use foo::reexported_e as i;
|
2013-08-07 00:11:34 -07:00
|
|
|
}
|
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
pub static a: isize = 0;
|
2013-08-07 00:11:34 -07:00
|
|
|
pub fn b() {}
|
|
|
|
pub struct c;
|
|
|
|
pub enum d {}
|
2015-03-25 17:06:52 -07:00
|
|
|
pub type e = isize;
|
2013-08-07 00:11:34 -07:00
|
|
|
|
2015-03-25 17:06:52 -07:00
|
|
|
static j: isize = 0;
|
2014-09-16 09:13:00 +12:00
|
|
|
fn k() {}
|
|
|
|
struct l;
|
|
|
|
enum m {}
|
2015-03-25 17:06:52 -07:00
|
|
|
type n = isize;
|