]>
Commit | Line | Data |
---|---|---|
416331ca XL |
1 | // run-pass |
2 | ||
0bf4aa26 XL |
3 | #![allow(non_upper_case_globals)] |
4 | #![allow(dead_code)] | |
223e47cc LB |
5 | // Test that a glob-export functions as an import |
6 | // when referenced within its own local scope. | |
7 | ||
8 | // Modified to not use export since it's going away. --pcw | |
9 | ||
c34b1796 AL |
10 | // pretty-expanded FIXME #23616 |
11 | ||
223e47cc LB |
12 | mod foo { |
13 | use foo::bar::*; | |
14 | pub mod bar { | |
c34b1796 | 15 | pub static a : isize = 10; |
223e47cc LB |
16 | } |
17 | pub fn zum() { | |
1a4d82fc | 18 | let _b = a; |
223e47cc LB |
19 | } |
20 | } | |
21 | ||
22 | pub fn main() { } |