fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
508 B15 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   |         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found struct `empty_struct::XEmpty6`
12
13error: aborting due to 2 previous errors
14
15For more information about this error, try `rustc --explain E0308`.