2020-01-05 00:17:46 +00:00
|
|
|
error[E0308]: `match` arms have incompatible types
|
2019-02-07 13:39:54 +00:00
|
|
|
--> $DIR/issue-11319.rs:8:20
|
2017-12-10 19:47:55 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | / match Some(10) {
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | |
|
2019-02-07 13:39:54 +00:00
|
|
|
LL | | Some(5) => false,
|
|
|
|
| | ----- this is found to be of type `bool`
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | |
|
2019-02-07 13:39:54 +00:00
|
|
|
LL | | Some(2) => true,
|
|
|
|
| | ---- this is found to be of type `bool`
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | | None => (),
|
2019-11-15 17:37:01 +00:00
|
|
|
| | ^^ expected `bool`, found `()`
|
2019-02-07 13:39:54 +00:00
|
|
|
... |
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | | _ => true
|
|
|
|
LL | | }
|
2019-02-07 13:39:54 +00:00
|
|
|
| |_____- `match` arms have incompatible types
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2023-11-21 15:44:16 +00:00
|
|
|
error: aborting due to 1 previous error
|
2017-12-10 19:47:55 +00:00
|
|
|
|
2018-03-03 14:59:40 +00:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|