fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
672 B21 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   |
7   = note: expected type `()`
8              found type `empty_struct::XEmpty2`
9
10error[E0308]: mismatched types
11  --> $DIR/issue-37026.rs:7:9
12   |
13LL |     let empty_struct::XEmpty6(..) = ();
14   |         ^^^^^^^^^^^^^^^^^^^^^^^^^ expected (), found struct `empty_struct::XEmpty6`
15   |
16   = note: expected type `()`
17              found type `empty_struct::XEmpty6`
18
19error: aborting due to 2 previous errors
20
21For more information about this error, try `rustc --explain E0308`.