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

21 lines
607 B
Plaintext
Raw Normal View History

error[E0308]: match arms have incompatible types
--> $DIR/issue-11319.rs:12: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-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0308"