rust/src/test/ui/issues/issue-11319.stderr

22 lines
624 B
Plaintext
Raw Normal View History

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`.