2016-08-16 06:14:41 -05:00
|
|
|
error[E0308]: mismatched types
|
2018-12-25 09:56:47 -06:00
|
|
|
--> $DIR/move-closure.rs:5:17
|
2016-08-16 06:14:41 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | let x: () = move || (); //~ ERROR mismatched types
|
2016-08-16 06:14:41 -05:00
|
|
|
| ^^^^^^^^^^ expected (), found closure
|
|
|
|
|
|
|
|
|
= note: expected type `()`
|
2018-12-25 09:56:47 -06:00
|
|
|
found type `[closure@$DIR/move-closure.rs:5:17: 5:27]`
|
2016-08-16 06:14:41 -05:00
|
|
|
|
2017-07-02 05:49:30 -05:00
|
|
|
error: aborting due to previous error
|
2016-08-16 06:14:41 -05:00
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0308`.
|