1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/issue-17728.rs:109:14
4 LL | / match to_parse {
5 LL | | "w" | "west" => RoomDirection::West,
6 LL | | "e" | "east" => RoomDirection::East,
7 LL | | "n" | "north" => RoomDirection::North,
9 LL | | "down" => RoomDirection::Down,
10 | | ------------------- this and all prior arms are found to be of type `RoomDirection`
12 | | ^^^^ expected enum `RoomDirection`, found enum `Option`
14 | |_____- `match` arms have incompatible types
16 = note: expected enum `RoomDirection`
17 found enum `Option<_>`
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0308`.