rust/src/test/ui/issues/issue-5358-1.stderr
2019-01-12 19:36:28 -08:00

15 lines
461 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-5358-1.rs:6:9
|
LL | match S(Either::Left(5)) {
| ------------------ this match expression has type `S`
LL | Either::Right(_) => {}
| ^^^^^^^^^^^^^^^^ expected struct `S`, found enum `Either`
|
= note: expected type `S`
found type `Either<_, _>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.