]>
Commit | Line | Data |
---|---|---|
532ac7d7 | 1 | error[E0618]: expected function, found `()` |
064997fb | 2 | --> $DIR/suggest-on-bare-closure-call.rs:6:15 |
532ac7d7 XL |
3 | | |
4 | LL | let _ = ||{}(); | |
5 | | ^^-- | |
6 | | | | |
7 | | call expression requires function | |
e74abb32 | 8 | | |
3c0e092e | 9 | help: if you meant to create this closure and immediately call it, surround the closure with parentheses |
532ac7d7 XL |
10 | | |
11 | LL | let _ = (||{})(); | |
94222f64 | 12 | | + + |
532ac7d7 | 13 | |
064997fb FG |
14 | error[E0618]: expected function, found `()` |
15 | --> $DIR/suggest-on-bare-closure-call.rs:9:21 | |
16 | | | |
17 | LL | let _ = async ||{}(); | |
18 | | ^^-- | |
19 | | | | |
20 | | call expression requires function | |
21 | | | |
22 | help: if you meant to create this closure and immediately call it, surround the closure with parentheses | |
23 | | | |
24 | LL | let _ = (async ||{})(); | |
25 | | + + | |
26 | ||
27 | error: aborting due to 2 previous errors | |
532ac7d7 XL |
28 | |
29 | For more information about this error, try `rustc --explain E0618`. |