fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1// run-rustfix 2use std::vec; 3 4use std::sync::atomic::AtomicBool; 5 6mod foo { 7 pub mod bar { 8 pub mod baz { 9 pub use std::vec::Vec as MyVec; 10 } 11 } 12} 13 14mod u { 15 use foo::bar::baz::MyVec; 16 17fn _a() { 18 let _: Vec<i32> = MyVec::new(); //~ ERROR failed to resolve 19 } 20} 21 22mod v { 23 use foo::bar::baz::MyVec; 24 25fn _b() { 26 let _: Vec<i32> = MyVec::new(); //~ ERROR failed to resolve 27 } 28} 29 30fn main() { 31 let _t: Vec<i32> = Vec::new(); //~ ERROR failed to resolve 32 type _B = vec::Vec::<u8>; //~ ERROR failed to resolve 33 let _t = AtomicBool::new(true); //~ ERROR failed to resolve 34}