fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

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