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
190 B
Rust
Raw Normal View History

2020-12-06 17:01:35 -06: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(); }