fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0308]: match arms have incompatible types 2 --> $DIR/issue-17728.rs:109:14 3 | 4LL | / match to_parse { 5LL | | "w" | "west" => RoomDirection::West, 6LL | | "e" | "east" => RoomDirection::East, 7LL | | "n" | "north" => RoomDirection::North, 8... | 9LL | | "down" => RoomDirection::Down, 10 | | ------------------- this and all prior arms are found to be of type `RoomDirection` 11LL | | _ => None 12 | | ^^^^ expected enum `RoomDirection`, found enum `std::option::Option` 13LL | | } 14 | |_____- `match` arms have incompatible types 15 | 16 = note: expected type `RoomDirection` 17 found type `std::option::Option<_>` 18 19error: aborting due to previous error 20 21For more information about this error, try `rustc --explain E0308`.