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