2019-07-27 00:54:25 +03:00
|
|
|
//@ run-pass
|
|
|
|
|
|
2018-09-14 12:20:28 +02:00
|
|
|
#![allow(non_upper_case_globals)]
|
|
|
|
|
#![allow(dead_code)]
|
2012-02-21 16:09:44 -08:00
|
|
|
// Test that a glob-export functions as an import
|
|
|
|
|
// when referenced within its own local scope.
|
|
|
|
|
|
2012-05-22 10:54:12 -07:00
|
|
|
// Modified to not use export since it's going away. --pcw
|
|
|
|
|
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2012-02-21 16:09:44 -08:00
|
|
|
mod foo {
|
2012-12-13 13:05:22 -08:00
|
|
|
use foo::bar::*;
|
2013-01-30 15:56:40 -08:00
|
|
|
pub mod bar {
|
2015-03-25 17:06:52 -07:00
|
|
|
pub static a : isize = 10;
|
2012-02-21 16:09:44 -08:00
|
|
|
}
|
2013-01-30 15:56:40 -08:00
|
|
|
pub fn zum() {
|
2013-08-17 08:37:42 -07:00
|
|
|
let _b = a;
|
2012-02-21 16:09:44 -08:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() { }
|