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