]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/issues/issue-17728.rs
New upstream version 1.34.2+dfsg1
[rustc.git] / src / test / ui / issues / issue-17728.rs
index 0f13ae3304d6cf3fd39e7e84e0e554b28b918ac4..15cea1d609d5382baed28eef39e9d99add1a8b00 100644 (file)
@@ -97,7 +97,7 @@ impl Debug for Player {
 }
 
 fn str_to_direction(to_parse: &str) -> RoomDirection {
-    match to_parse { //~ ERROR match arms have incompatible types
+    match to_parse {
         "w" | "west" => RoomDirection::West,
         "e" | "east" => RoomDirection::East,
         "n" | "north" => RoomDirection::North,
@@ -108,6 +108,7 @@ fn str_to_direction(to_parse: &str) -> RoomDirection {
         "down" => RoomDirection::Down,
         _ => None
     }
+        //~^^ ERROR match arms have incompatible types
 }
 
 fn main() {