]> git.lizzy.rs Git - rust.git/blob - tests/ui/self/self-shadowing-import.rs
Auto merge of #107843 - bjorn3:sync_cg_clif-2023-02-09, r=bjorn3
[rust.git] / tests / ui / self / self-shadowing-import.rs
1 // run-pass
2
3 mod a {
4     pub mod b {
5         pub mod a {
6             pub fn foo() -> isize { return 1; }
7         }
8     }
9 }
10
11 mod c {
12     use a::b::a;
13     pub fn bar() { assert_eq!(a::foo(), 1); }
14 }
15
16 pub fn main() { c::bar(); }