2017-12-10 13:47:55 -06:00
|
|
|
error[E0308]: match arms have incompatible types
|
2019-02-07 07:39:54 -06:00
|
|
|
--> $DIR/issue-11319.rs:8:20
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | / match Some(10) {
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2019-02-07 07:39:54 -06:00
|
|
|
LL | | Some(5) => false,
|
|
|
|
| | ----- this is found to be of type `bool`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2019-02-07 07:39:54 -06:00
|
|
|
LL | | Some(2) => true,
|
|
|
|
| | ---- this is found to be of type `bool`
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | None => (),
|
2019-02-07 07:39:54 -06:00
|
|
|
| | ^^ expected bool, found ()
|
|
|
|
... |
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | | _ => true
|
|
|
|
LL | | }
|
2019-02-07 07:39:54 -06:00
|
|
|
| |_____- `match` arms have incompatible types
|
2017-12-10 13:47:55 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|