rust/tests/ui/imports/import-rpass.rs

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

13 lines
191 B
Rust
Raw Normal View History

2020-12-06 23:01:35 +00:00
//@ run-pass
mod foo {
pub fn x(y: isize) { println!("{}", y); }
}
mod bar {
use foo::x;
use foo::x as z;
pub fn thing() { x(10); z(10); }
}
pub fn main() { bar::thing(); }