]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-37026.stderr
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[rust.git] / src / test / ui / issues / issue-37026.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-37026.rs:6:9
3    |
4 LL |     let empty_struct::XEmpty2 = (); //~ ERROR mismatched types
5    |         ^^^^^^^^^^^^^^^^^^^^^ expected (), found struct `empty_struct::XEmpty2`
6    |
7    = note: expected type `()`
8               found type `empty_struct::XEmpty2`
9
10 error[E0308]: mismatched types
11   --> $DIR/issue-37026.rs:7:9
12    |
13 LL |     let empty_struct::XEmpty6(..) = (); //~ ERROR mismatched types
14    |         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found struct `empty_struct::XEmpty6`
15    |
16    = note: expected type `()`
17               found type `empty_struct::XEmpty6`
18
19 error: aborting due to 2 previous errors
20
21 For more information about this error, try `rustc --explain E0308`.