]> git.lizzy.rs Git - rust.git/blob - src/test/ui/lifetimes/issue-17728.stderr
Rollup merge of #105555 - krasimirgg:llvm-int-opt-2, r=cuviper
[rust.git] / src / test / ui / lifetimes / issue-17728.stderr
1 error[E0308]: `match` arms have incompatible types
2   --> $DIR/issue-17728.rs:108:14
3    |
4 LL | /     match to_parse {
5 LL | |         "w" | "west" => RoomDirection::West,
6 LL | |         "e" | "east" => RoomDirection::East,
7 LL | |         "n" | "north" => RoomDirection::North,
8 ...  |
9 LL | |         "down" => RoomDirection::Down,
10    | |                   ------------------- this and all prior arms are found to be of type `RoomDirection`
11 LL | |         _ => None
12    | |              ^^^^ expected enum `RoomDirection`, found enum `Option`
13 LL | |     }
14    | |_____- `match` arms have incompatible types
15    |
16    = note: expected enum `RoomDirection`
17               found enum `Option<_>`
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0308`.