blob: 28fef511e04b14a6d4cd8416ef268af1128b9635 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
error[E0618]: expected function, found `()`
--> $DIR/suggest-on-bare-closure-call.rs:2:15
|
LL | let _ = ||{}();
| ^^--
| |
| call expression requires function
|
help: if you meant to create this closure and immediately call it, surround the closure with parenthesis
|
LL | let _ = (||{})();
| ^ ^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0618`.
|