]> git.lizzy.rs Git - rust.git/blob - tests/ui/empty/issue-37026.stderr
75c3ab13caccc681b9658feedeca20dac9e58032
[rust.git] / tests / ui / empty / issue-37026.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-37026.rs:6:9
3    |
4 LL |     let empty_struct::XEmpty2 = ();
5    |         ^^^^^^^^^^^^^^^^^^^^^   -- this expression has type `()`
6    |         |
7    |         expected `()`, found `XEmpty2`
8
9 error[E0308]: mismatched types
10   --> $DIR/issue-37026.rs:7:9
11    |
12 LL |     let empty_struct::XEmpty6(..) = ();
13    |         ^^^^^^^^^^^^^^^^^^^^^^^^^   -- this expression has type `()`
14    |         |
15    |         expected `()`, found `XEmpty6`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0308`.