]>
Commit | Line | Data |
---|---|---|
9e0c209e | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/move-closure.rs:5:17 |
9e0c209e | 3 | | |
532ac7d7 | 4 | LL | let x: () = move || (); |
60c5eb7d XL |
5 | | -- ^^^^^^^^^^ expected `()`, found closure |
6 | | | | |
7 | | expected due to this | |
9e0c209e | 8 | | |
60c5eb7d | 9 | = note: expected unit type `()` |
064997fb | 10 | found closure `[closure@$DIR/move-closure.rs:5:17: 5:24]` |
923072b8 FG |
11 | help: use parentheses to call this closure |
12 | | | |
13 | LL | let x: () = (move || ())(); | |
14 | | + +++ | |
9e0c209e | 15 | |
041b39d2 | 16 | error: aborting due to previous error |
9e0c209e | 17 | |
0531ce1d | 18 | For more information about this error, try `rustc --explain E0308`. |