fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
818 B21 linesraw
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 enum `RoomDirection`
17              found enum `std::option::Option<_>`
18
19error: aborting due to previous error
20
21For more information about this error, try `rustc --explain E0308`.