rust/tests/ui/imports/suggest-import-issue-120074.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
262 B
Rust
Raw Normal View History

2024-07-04 04:55:00 -05:00
//@ 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
}