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