1 error[E0308]: match arms have incompatible types
2 --> $DIR/issue-11319.rs:12:5
4 LL | / match Some(10) {
5 LL | | //~^ ERROR match arms have incompatible types
6 LL | | //~| expected type `bool`
7 LL | | //~| found type `()`
10 | | -- match arm with an incompatible type
13 | |_____^ expected bool, found ()
15 = note: expected type `bool`
18 error: aborting due to previous error
20 For more information about this error, try `rustc --explain E0308`.