]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/nested-ty-params.rs
test: Automatically remove all `~[T]` from tests.
[rust.git] / src / test / compile-fail / nested-ty-params.rs
index daf92b700e7f32c96d7734325e9a6426d601a65e..7b7ce6bee2ffbb8ac71cfa153d26bbb72d455394 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 // error-pattern:attempt to use a type argument out of scope
-fn hd<U>(v: ~[U]) -> U {
+fn hd<U>(v: Vec<U> ) -> U {
     fn hd1(w: [U]) -> U { return w[0]; }
 
     return hd1(v);