Fix async closure call suggestion

This commit is contained in:
Michael Goulet 2024-01-15 19:24:03 +00:00
parent f1ee076f81
commit f4e35c60b0
2 changed files with 51 additions and 36 deletions

View file

@ -18,6 +18,11 @@ LL | let _ = async ||{}();
| ^^--
| |
| call expression requires function
|
help: if you meant to create this closure and immediately call it, surround the closure with parentheses
|
LL | let _ = (async ||{})();
| + +
error: aborting due to 2 previous errors