Fix async closure call suggestion
This commit is contained in:
parent
f1ee076f81
commit
f4e35c60b0
2 changed files with 51 additions and 36 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue