]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-99240-2.stderr
Rollup merge of #105955 - Nilstrieb:no-trivial-opt-wrappers-we-have-field-accesses...
[rust.git] / src / test / ui / suggestions / issue-99240-2.stderr
1 error[E0618]: expected function, found enum variant `Alias::Unit`
2   --> $DIR/issue-99240-2.rs:7:5
3    |
4 LL |        Unit,
5    |        ---- enum variant `Alias::Unit` defined here
6 ...
7 LL |        Alias::
8    |  ______^
9    | | _____|
10    | ||
11 LL | ||     Unit();
12    | ||________^_- call expression requires function
13    |  |________|
14    | 
15    |
16 help: `Alias::Unit` is a unit enum variant, and does not take parentheses to be constructed
17    |
18 LL -     Unit();
19 LL +     Unit;
20    |
21
22 error: aborting due to previous error
23
24 For more information about this error, try `rustc --explain E0618`.