]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/trait-as-struct-constructor.rs
New upstream version 1.12.0+dfsg1
[rustc.git] / src / test / compile-fail / trait-as-struct-constructor.rs
index 67ccd6b7cd058dd787c75c09230f58a45b72359c..c78eebddbfdb80051d8b5be9a4150f51df653000 100644 (file)
@@ -12,5 +12,6 @@ trait TraitNotAStruct {}
 
 fn main() {
     TraitNotAStruct{ value: 0 };
-    //~^ ERROR: `TraitNotAStruct` does not name a structure [E0071]
+    //~^ ERROR: `TraitNotAStruct` does not name a struct or a struct variant [E0071]
+    //~| NOTE not a struct
 }