rust/tests/ui/self/self-shadowing-import.rs
2023-01-11 09:32:08 +00:00

16 lines
226 B
Rust

// run-pass
mod a {
pub mod b {
pub mod a {
pub fn foo() -> isize { return 1; }
}
}
}
mod c {
use a::b::a;
pub fn bar() { assert_eq!(a::foo(), 1); }
}
pub fn main() { c::bar(); }