1 #![feature(lang_items, start, no_core)]
2 #![no_core] // makes debugging this test *a lot* easier (during resolve)
3 
4 #[lang = "sized"] pub trait Sized {}
5 #[lang="copy"] pub trait Copy {}
6 
7 // Test to make sure that private items imported through globs remain private
8 // when  they're used.
9 
10 mod bar {
11     pub use self::glob::*;
12 
13     mod glob {
gpriv()14         fn gpriv() {}
15     }
16 }
17 
foo()18 pub fn foo() {}
19 
test2()20 fn test2() {
21     use bar::glob::gpriv; //~ ERROR: module `glob` is private
22     gpriv();
23 }
24 
main(_: isize, _: *const *const u8) -> isize25 #[start] fn main(_: isize, _: *const *const u8) -> isize { 3 }
26