rust/src/test/ui/suggestions/suggest-on-bare-closure-call.stderr
Esteban Küber 99f2977031 Modify structured suggestion output
* On suggestions that include deletions, use a diff inspired output format
* When suggesting addition, use `+` as underline
* Color highlight modified span
2021-08-11 09:46:24 +00:00

17 lines
494 B
Plaintext

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