2019-01-20 20:26:46 +01:00
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-57741-1.rs:14:9
|
|
|
|
|
|
|
|
|
LL | let y = match x {
|
2020-09-02 10:40:56 +03:00
|
|
|
| - this expression has type `Box<u32>`
|
2019-01-20 20:26:46 +01:00
|
|
|
LL | S::A { a } | S::B { b: a } => a,
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^ expected struct `Box`, found enum `S`
|
2019-01-20 20:26:46 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: expected struct `Box<u32>`
|
2019-11-13 14:16:56 -08:00
|
|
|
found enum `S`
|
2019-01-20 20:26:46 +01:00
|
|
|
|
|
|
|
error[E0308]: mismatched types
|
|
|
|
--> $DIR/issue-57741-1.rs:14:22
|
|
|
|
|
|
|
|
|
LL | let y = match x {
|
2020-09-02 10:40:56 +03:00
|
|
|
| - this expression has type `Box<u32>`
|
2019-01-20 20:26:46 +01:00
|
|
|
LL | S::A { a } | S::B { b: a } => a,
|
2020-09-02 10:40:56 +03:00
|
|
|
| ^^^^^^^^^^^^^ expected struct `Box`, found enum `S`
|
2019-01-20 20:26:46 +01:00
|
|
|
|
|
2020-09-02 10:40:56 +03:00
|
|
|
= note: expected struct `Box<u32>`
|
2019-11-13 14:16:56 -08:00
|
|
|
found enum `S`
|
2019-01-20 20:26:46 +01:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0308`.
|