rust/tests/ui/self/self-shadowing-import.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
227 B
Rust
Raw Normal View History

//@ 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(); }