]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-17728.nll.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-17728.nll.stderr
1 error[E0308]: match arms have incompatible types
2   --> $DIR/issue-17728.rs:110:5
3    |
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,
8 ...  |
9 LL | |         _ => None
10    | |              ---- match arm with an incompatible type
11 LL | |     }
12    | |_____^ expected enum `RoomDirection`, found enum `std::option::Option`
13    |
14    = note: expected type `RoomDirection`
15               found type `std::option::Option<_>`
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0308`.