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

21 lines
596 B
Plaintext
Raw Normal View History

error[E0308]: match arms have incompatible types
2018-12-25 09:56:47 -06:00
--> $DIR/issue-11319.rs:2:5
|
2018-02-22 18:42:32 -06:00
LL | / match Some(10) {
LL | | //~^ ERROR match arms have incompatible types
LL | | //~| expected type `bool`
LL | | //~| found type `()`
... |
2018-02-22 18:42:32 -06:00
LL | | None => (),
| | -- match arm with an incompatible type
2018-02-22 18:42:32 -06:00
LL | | _ => true
LL | | }
| |_____^ expected bool, found ()
|
= 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`.