]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/export-glob-imports-target.rs
Rollup merge of #106958 - jyn514:labels, r=m-ou-se
[rust.git] / tests / ui / imports / export-glob-imports-target.rs
1 // run-pass
2
3 #![allow(non_upper_case_globals)]
4 #![allow(dead_code)]
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
10 // pretty-expanded FIXME #23616
11
12 mod foo {
13     use foo::bar::*;
14     pub mod bar {
15         pub static a : isize = 10;
16     }
17     pub fn zum() {
18         let _b = a;
19     }
20 }
21
22 pub fn main() { }