]> git.proxmox.com Git - rustc.git/blob - src/test/ui/match/issue-11319.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / match / issue-11319.stderr
1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/issue-11319.rs:8:20
3 |
4 LL | / match Some(10) {
5 LL | |
6 LL | | Some(5) => false,
7 | | ----- this is found to be of type `bool`
8 LL | |
9 LL | | Some(2) => true,
10 | | ---- this is found to be of type `bool`
11 LL | |
12 LL | | None => (),
13 | | ^^ expected `bool`, found `()`
14 ... |
15 LL | | _ => true
16 LL | | }
17 | |_____- `match` arms have incompatible types
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0308`.