]> git.lizzy.rs Git - rust.git/blob - tests/ui/imports/import-rpass.rs
Rollup merge of #106605 - notriddle:notriddle/outdated-rustbook, r=GuillaumeGomez
[rust.git] / tests / ui / imports / import-rpass.rs
1 // run-pass
2 mod foo {
3     pub fn x(y: isize) { println!("{}", y); }
4 }
5
6 mod bar {
7     use foo::x;
8     use foo::x as z;
9     pub fn thing() { x(10); z(10); }
10 }
11
12 pub fn main() { bar::thing(); }