//@ run-rustfix mod foo { pub mod bar { pub mod baz { pub use std::vec::Vec as MyVec; } } } mod u { fn _a() { let _: Vec = super::foo::baf::baz::MyVec::new(); //~ ERROR failed to resolve } } mod v { fn _b() { let _: Vec = fox::bar::baz::MyVec::new(); //~ ERROR failed to resolve } } fn main() { let _t: Vec = vec::new(); //~ ERROR failed to resolve type _B = vec::Vec::; //~ ERROR failed to resolve let _t = std::sync_error::atomic::AtomicBool::new(true); //~ ERROR failed to resolve }