2019-03-08 21:08:28 -06:00
|
|
|
error[E0618]: expected function, found `()`
|
|
|
|
--> $DIR/suggest-on-bare-closure-call.rs:2:15
|
|
|
|
|
|
|
|
|
LL | let _ = ||{}();
|
|
|
|
| ^^--
|
|
|
|
| |
|
|
|
|
| call expression requires function
|
2019-10-24 00:20:58 -05:00
|
|
|
|
|
2019-03-08 21:08:28 -06:00
|
|
|
help: if you meant to create this closure and immediately call it, surround the closure with parenthesis
|
|
|
|
|
|
|
|
|
LL | let _ = (||{})();
|
2021-06-21 21:07:19 -05:00
|
|
|
| + +
|
2019-03-08 21:08:28 -06:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0618`.
|