mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 06:22:00 +00:00
20 lines
592 B
Plaintext
20 lines
592 B
Plaintext
error[E0308]: mismatched types
|
|
--> $DIR/issue-109188.rs:17:13
|
|
|
|
|
LL | let Either::One(_t) = x;
|
|
| ^^^^^^^^^^^^^^^ - this expression has type `()`
|
|
| |
|
|
| expected `()`, found `Either`
|
|
|
|
error[E0308]: mismatched types
|
|
--> $DIR/issue-109188.rs:18:13
|
|
|
|
|
LL | let Either::Two(_t) = x;
|
|
| ^^^^^^^^^^^^^^^ - this expression has type `()`
|
|
| |
|
|
| expected `()`, found `Either`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|