rust/src/test/ui/issue-11319.stderr
Guillaume Gomez 2e104a77cf update tests
2018-03-14 00:53:24 +01:00

21 lines
597 B
Plaintext

error[E0308]: match arms have incompatible types
--> $DIR/issue-11319.rs:12:5
|
LL | / match Some(10) {
LL | | //~^ ERROR match arms have incompatible types
LL | | //~| expected type `bool`
LL | | //~| found type `()`
... |
LL | | None => (),
| | -- match arm with an incompatible type
LL | | _ => true
LL | | }
| |_____^ expected bool, found ()
|
= note: expected type `bool`
found type `()`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.