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

25 lines
848 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) {
LL | | //~^ NOTE `match` arms have incompatible types
LL | | Some(5) => false,
| | ----- this is found to be of type `bool`
LL | | //~^ NOTE this is found to be of type `bool`
LL | | Some(2) => true,
| | ---- this is found to be of type `bool`
LL | | //~^ NOTE this is found to be of type `bool`
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
|
= note: expected type `bool`
found type `()`
error: aborting due to previous error
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0308`.