1 error[E0618]: expected function, found `()`
2 --> $DIR/suggest-on-bare-closure-call.rs:6:15
7 | call expression requires function
9 help: if you meant to create this closure and immediately call it, surround the closure with parentheses
11 LL | let _ = (||{})();
14 error[E0618]: expected function, found `()`
15 --> $DIR/suggest-on-bare-closure-call.rs:9:21
17 LL | let _ = async ||{}();
20 | call expression requires function
22 help: if you meant to create this closure and immediately call it, surround the closure with parentheses
24 LL | let _ = (async ||{})();
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0618`.