]> git.proxmox.com Git - rustc.git/blob - src/test/ui/issues/issue-17728.nll.stderr
New upstream version 1.62.1+dfsg1
[rustc.git] / src / test / ui / issues / issue-17728.nll.stderr
1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/issue-17728.rs:109: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`.