1 error[E0308]: match arms have incompatible types
2 --> $DIR/issue-17728.rs:110:5
4 LL | / match to_parse { //~ ERROR match arms have incompatible types
5 LL | | "w" | "west" => RoomDirection::West,
6 LL | | "e" | "east" => RoomDirection::East,
7 LL | | "n" | "north" => RoomDirection::North,
10 | | ---- match arm with an incompatible type
12 | |_____^ expected enum `RoomDirection`, found enum `std::option::Option`
14 = note: expected type `RoomDirection`
15 found type `std::option::Option<_>`
17 error: aborting due to previous error
19 For more information about this error, try `rustc --explain E0308`.