]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-on-bare-closure-call.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / suggest-on-bare-closure-call.stderr
1 error[E0618]: expected function, found `()`
2   --> $DIR/suggest-on-bare-closure-call.rs:2:15
3    |
4 LL |     let _ = ||{}();
5    |               ^^--
6    |               |
7    |               call expression requires function
8    |
9 help: if you meant to create this closure and immediately call it, surround the closure with parentheses
10    |
11 LL |     let _ = (||{})();
12    |             +    +
13
14 error: aborting due to previous error
15
16 For more information about this error, try `rustc --explain E0618`.