]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/issue-5927.rs
Make name resolution errors non-fatal
[rust.git] / src / test / compile-fail / issue-5927.rs
index 0359248b36a490cdaac3563a8a1c8552bc25f73a..e5f091d873df9c1384207472e4f6061713bf5152 100644 (file)
@@ -9,12 +9,10 @@
 // except according to those terms.
 
 
-
-// error-pattern:unresolved enum variant
-
 fn main() {
     let z = match 3 {
-        x(1) => x(1)
+        x(1) => x(1) //~ ERROR unresolved enum variant
+        //~^ ERROR unresolved name `x`
     };
-    assert_eq!(z,3);
+    assert!(z == 3);
 }