]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/issue-28992-empty.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / compile-fail / issue-28992-empty.rs
index e492d48fdaf0f041f65109bbe4d8f64f661238f1..d47fdda0203e8f0e38e92233d5d5816496935dee 100644 (file)
@@ -21,6 +21,7 @@ impl S {
 }
 
 fn main() {
-    if let C1(..) = 0 {} //~ ERROR expected variant or struct, found constant `C1`
-    if let S::C2(..) = 0 {} //~ ERROR `S::C2` does not name a tuple variant or a tuple struct
+    if let C1(..) = 0 {} //~ ERROR expected tuple struct/variant, found constant `C1`
+    if let S::C2(..) = 0 {}
+    //~^ ERROR expected tuple struct/variant, found associated constant `S::C2`
 }