mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
27 lines
587 B
Rust
27 lines
587 B
Rust
// 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
|
|
}
|