]> git.lizzy.rs Git - rust.git/blob - tests/ui/self/self-shadowing-import.rs
Rollup merge of #107091 - clubby789:infer-ftl-missing-dollar, r=compiler-errors
[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(); }