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