]> git.lizzy.rs Git - rust.git/blob - src/test/ui/empty/issue-37026.stderr
Rollup merge of #103159 - cuviper:check_pow-final-try_opt, r=Mark-Simulacrum
[rust.git] / src / test / 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 struct `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 struct `XEmpty6`
16
17 error: aborting due to 2 previous errors
18
19 For more information about this error, try `rustc --explain E0308`.