]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/E0408.rs
New upstream version 1.14.0+dfsg1
[rustc.git] / src / test / compile-fail / E0408.rs
index 43f6d9d757d7ec3dd30508e6509d1f9003fdf13b..d75f6124827726d79cba494eec55509332645490 100644 (file)
@@ -12,7 +12,7 @@ fn main() {
     let x = Some(0);
 
     match x {
-        Some(y) | None => {} //~ ERROR E0408
-        _ => ()
+        Some(y) | None => {} //~  ERROR variable `y` from pattern #1 is not bound in pattern #2
+        _ => ()              //~| NOTE pattern doesn't bind `y`
     }
 }