fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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