]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/infinite-vec-type-recursion.rs
test: Make manual changes to deal with the fallout from removal of
[rust.git] / src / test / compile-fail / infinite-vec-type-recursion.rs
index 409a5e72fed7023f9d867de11c927f3044338a45..c52199ecedd388b7fae9e5e3c67833cc0d6d3ba7 100644 (file)
@@ -10,6 +10,8 @@
 
 // error-pattern: illegal recursive type
 
-type x = vec!(x);
+use std::vec_ng::Vec;
+
+type x = Vec<x>;
 
 fn main() { let b: x = Vec::new(); }