2017-12-10 13:47:55 -06:00
|
|
|
error[E0308]: match arms have incompatible types
|
|
|
|
--> $DIR/issue-11319.rs:12:5
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / match Some(10) {
|
|
|
|
LL | | //~^ ERROR match arms have incompatible types
|
|
|
|
LL | | //~| expected type `bool`
|
|
|
|
LL | | //~| found type `()`
|
2017-12-10 13:47:55 -06:00
|
|
|
... |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | None => (),
|
2017-12-22 17:55:44 -06:00
|
|
|
| | -- match arm with an incompatible type
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | _ => true
|
|
|
|
LL | | }
|
2017-12-10 13:47:55 -06:00
|
|
|
| |_____^ expected bool, found ()
|
|
|
|
|
|
|
|
|
= note: expected type `bool`
|
|
|
|
found type `()`
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-02-19 14:40:25 -06:00
|
|
|
If you want more information on this error, try using "rustc --explain E0308"
|