fork/rust

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

borsAuto merge of #69444 - pietroalbini:stable-next-final-v2-new, r=pietroalbinif3e1a954d2e

1.41.1
494 B16 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
8   |
9help: if you meant to create this closure and immediately call it, surround the closure with parenthesis
10   |
11LL |     let _ = (||{})();
12   |             ^    ^
13
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0618`.