Files
rust/tests/ui/pattern/enum-struct-pattern-mismatch-15896.stderr

13 lines
378 B
Plaintext
Raw Normal View History

2018-07-15 14:11:54 -07:00
error[E0308]: mismatched types
2025-07-24 19:07:20 +05:00
--> $DIR/enum-struct-pattern-mismatch-15896.rs:13:11
2018-07-15 14:11:54 -07:00
|
LL | let u = match e {
| - this expression has type `E`
LL | E::B(
2018-07-15 14:11:54 -07:00
LL | Tau{t: x},
| ^^^^^^^^^ expected `R`, found `Tau`
2018-07-15 14:11:54 -07:00
error: aborting due to 1 previous error
2018-07-15 14:11:54 -07:00
For more information about this error, try `rustc --explain E0308`.