]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/lexical-scopes.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / compile-fail / lexical-scopes.rs
index 505a91f223cc6ceb99afb37edf5540b923105301..1ab59e790d7ee5975a6a41524625763b08c24930 100644 (file)
@@ -10,7 +10,7 @@
 
 struct T { i: i32 }
 fn f<T>() {
-    let t = T { i: 0 }; //~ ERROR `T` does not name a struct or a struct variant
+    let t = T { i: 0 }; //~ ERROR expected struct, variant or union type, found type parameter `T`
 }
 
 mod Foo {