rust/tests/ui/imports/import-rpass.rs
Lukas Wirth 23d5231607 Use non-2015 edition paths in tests that do not test for their resolution
This allows for testing these tests on editions other than 2015
2025-06-03 10:13:33 +02:00

13 lines
205 B
Rust

//@ run-pass
mod foo {
pub fn x(y: isize) { println!("{}", y); }
}
mod bar {
use crate::foo::x;
use crate::foo::x as z;
pub fn thing() { x(10); z(10); }
}
pub fn main() { bar::thing(); }