rust/src/test/ui/imports/import-rpass.rs

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