1 error[E0308]: mismatched types
2 --> $DIR/issue-37026.rs:6:9
4 LL | let empty_struct::XEmpty2 = ();
5 | ^^^^^^^^^^^^^^^^^^^^^ -- this expression has type `()`
7 | expected `()`, found struct `XEmpty2`
9 error[E0308]: mismatched types
10 --> $DIR/issue-37026.rs:7:9
12 LL | let empty_struct::XEmpty6(..) = ();
13 | ^^^^^^^^^^^^^^^^^^^^^^^^^ -- this expression has type `()`
15 | expected `()`, found struct `XEmpty6`
17 error: aborting due to 2 previous errors
19 For more information about this error, try `rustc --explain E0308`.