rust/tests/ui/imports/suggest-import-issue-120074.rs
2024-07-04 09:55:00 +00:00

14 lines
262 B
Rust

//@ revisions: edition2015 edition2021
pub mod foo {
pub mod bar {
pub fn do_the_thing() -> usize {
42
}
}
}
fn main() {
println!("Hello, {}!", crate::bar::do_the_thing); //~ ERROR failed to resolve: unresolved import
}