fork/rust

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

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

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