blob: b9931e45bd2381bae7057f90d863e0608080d49c [file] [log] [blame]
warning: not reporting region error due to nll
--> $DIR/issue-17728.rs:23:49
|
LL | let maybe_room = room.direction_to_room.get(&direction);
| ^^^
error[E0308]: match arms have incompatible types
--> $DIR/issue-17728.rs:110:5
|
LL | / match to_parse { //~ ERROR match arms have incompatible types
LL | | "w" | "west" => RoomDirection::West,
LL | | "e" | "east" => RoomDirection::East,
LL | | "n" | "north" => RoomDirection::North,
... |
LL | | _ => None
| | ---- match arm with an incompatible type
LL | | }
| |_____^ expected enum `RoomDirection`, found enum `std::option::Option`
|
= note: expected type `RoomDirection`
found type `std::option::Option<_>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.