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