fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
698 B29 linesraw
1error[E0618]: expected function, found enum variant `X::Entry`
2  --> $DIR/E0618.rs:6:5
3   |
4LL |     Entry,
5   |     ----- `X::Entry` defined here
6...
7LL |     X::Entry();
8   |     ^^^^^^^^--
9   |     |
10   |     call expression requires function
11   |
12help: `X::Entry` is a unit variant, you need to write it without the parenthesis
13   |
14LL |     X::Entry;
15   |     ^^^^^^^^
16
17error[E0618]: expected function, found `i32`
18  --> $DIR/E0618.rs:9:5
19   |
20LL |     let x = 0i32;
21   |         - `i32` defined here
22LL |     x();
23   |     ^--
24   |     |
25   |     call expression requires function
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0618`.