about summary refs log tree commit diff
path: root/tests/ui/imports/suggest-import-issue-120074.rs
blob: 7b6b5c73103a1649ae6531416a2adb9c4a47df2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//@ 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
}