blob: 97d0b0bf2a947fe5cc243d7a1777c7bca5b1e591 [file] [log] [blame] [edit]
//@ edition:2015
//@ run-rustfix
mod foo {
pub mod bar {
pub mod baz {
pub use std::vec::Vec as MyVec;
}
}
}
mod u {
fn _a() {
let _: Vec<i32> = super::foo::baf::baz::MyVec::new(); //~ ERROR failed to resolve
}
}
mod v {
fn _b() {
let _: Vec<i32> = fox::bar::baz::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 = std::sync_error::atomic::AtomicBool::new(true); //~ ERROR failed to resolve
}