1 error[E0308]: `match` arms have incompatible types
2 --> $DIR/issue-11319.rs:8:20
4 LL | / match Some(10) {
6 LL | | Some(5) => false,
7 | | ----- this is found to be of type `bool`
9 LL | | Some(2) => true,
10 | | ---- this is found to be of type `bool`
13 | | ^^ expected `bool`, found `()`
17 | |_____- `match` arms have incompatible types
19 error: aborting due to previous error
21 For more information about this error, try `rustc --explain E0308`.