]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-27815.rs
Imported Upstream version 1.11.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-27815.rs
index b1ac2dfd1c414b14b564f7f3b9f24ea4d5c2884a..d2f9abd2e316b41539d235ebaaa6599f01cb5049 100644 (file)
@@ -14,7 +14,9 @@ fn main() {
     let u = A { x: 1 }; //~ ERROR `A` does not name a structure
     let v = u32 { x: 1 }; //~ ERROR `u32` does not name a structure
     match () {
-        A { x: 1 } => {} //~ ERROR `A` does not name a struct
-        u32 { x: 1 } => {} //~ ERROR `u32` does not name a struct
+        A { x: 1 } => {} //~ ERROR expected variant, struct or type alias, found module `A`
+        //~^ ERROR `A` does not name a struct or a struct variant
+        u32 { x: 1 } => {} //~ ERROR expected variant, struct or type alias, found builtin type `u32
+        //~^ ERROR `u32` does not name a struct or a struct variant
     }
 }