rust/tests/ui/imports/export-glob-imports-target.rs
Lukas Wirth 23d5231607 Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 10:13:33 +02:00

22 lines
391 B
Rust

//@ run-pass
#![allow(non_upper_case_globals)]
#![allow(dead_code)]
// Test that a glob-export functions as an import
// when referenced within its own local scope.
// Modified to not use export since it's going away. --pcw
mod foo {
use crate::foo::bar::*;
pub mod bar {
pub static a : isize = 10;
}
pub fn zum() {
let _b = a;
}
}
pub fn main() { }