rust/tests/ui/match/issue-11319.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
630 B
Plaintext
Raw Normal View History

2020-01-05 00:17:46 +00:00
error[E0308]: `match` arms have incompatible types
--> $DIR/issue-11319.rs:8:20
|
2018-02-23 00:42:32 +00:00
LL | / match Some(10) {
2019-03-09 12:03:44 +00:00
LL | |
LL | | Some(5) => false,
| | ----- this is found to be of type `bool`
2019-03-09 12:03:44 +00:00
LL | |
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 => (),
| | ^^ expected `bool`, found `()`
... |
2018-02-23 00:42:32 +00:00
LL | | _ => true
LL | | }
| |_____- `match` arms have incompatible types
error: aborting due to previous error
2018-03-03 14:59:40 +00:00
For more information about this error, try `rustc --explain E0308`.