]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-11319.rs
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / issues / issue-11319.rs
index ea901205544b621e7f998730fddf3edc0da0c215..726c437355e53cbef382f5706a69dd435def67a7 100644 (file)
@@ -1,12 +1,14 @@
 fn main() {
     match Some(10) {
-    //~^ ERROR match arms have incompatible types
-    //~| expected type `bool`
-    //~| found type `()`
-    //~| expected bool, found ()
+    //~^ NOTE `match` arms have incompatible types
         Some(5) => false,
+        //~^ NOTE this is found to be of type `bool`
         Some(2) => true,
+        //~^ NOTE this is found to be of type `bool`
         None    => (),
+        //~^ ERROR match arms have incompatible types
+        //~| NOTE expected bool, found ()
+        //~| NOTE expected type `bool`
         _       => true
     }
 }