summaryrefslogtreecommitdiffstats
path: root/tests/ui/resolve/112590-2.fixed
blob: 3bfe81ae8d03cd60ba9cbfd5cfa73959a48e368d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// run-rustfix
use std::vec;

use std::sync::atomic::AtomicBool;

mod foo {
    pub mod bar {
        pub mod baz {
            pub use std::vec::Vec as MyVec;
        }
    }
}

mod u {
    use foo::bar::baz::MyVec;

fn _a() {
        let _: Vec<i32> = MyVec::new(); //~ ERROR failed to resolve
    }
}

mod v {
    use foo::bar::baz::MyVec;

fn _b() {
        let _: Vec<i32> = MyVec::new(); //~ ERROR failed to resolve
    }
}

fn main() {
    let _t: Vec<i32> = Vec::new(); //~ ERROR failed to resolve
    type _B = vec::Vec::<u8>; //~ ERROR failed to resolve
    let _t = AtomicBool::new(true); //~ ERROR failed to resolve
}