fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
497 B20 linesraw
1error[E0618]: expected function, found struct `G`
2  --> $DIR/issue-20714.rs:4:13
3   |
4LL | struct G;
5   | -------- struct `G` defined here
6...
7LL |     let g = G();
8   |             ^--
9   |             |
10   |             call expression requires function
11   |
12help: `G` is a unit struct, and does not take parentheses to be constructed
13   |
14LL -     let g = G();
15LL +     let g = G;
16   |
17
18error: aborting due to previous error
19
20For more information about this error, try `rustc --explain E0618`.