1 error[E0308]: mismatched types
2 --> $DIR/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs:19:9
5 | ^^^ ---- this expression has type `U`
7 | expected struct `U`, found struct `P`
9 = note: expected struct `U`
12 error[E0023]: this pattern has 0 fields, but the corresponding tuple struct has 1 field
13 --> $DIR/issue-67037-pat-tup-scrut-ty-diff-less-fields.rs:19:9
15 LL | struct P<T>(T); // 1 type parameter wanted
16 | - tuple struct has 1 field
19 | ^^^ expected 1 field, found 0
21 help: use `_` to explicitly ignore each field
25 help: use `..` to ignore all fields
27 LL | let P(..) = U {};
30 error: aborting due to 2 previous errors
32 Some errors have detailed explanations: E0023, E0308.
33 For more information about an error, try `rustc --explain E0023`.