]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/issue-99240-2.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / 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 LL | ||     Unit();
9    | ||________^_- call expression requires function
10    |  |________|
11    | 
12    |
13 help: `Alias::Unit` is a unit enum variant, and does not take parentheses to be constructed
14    |
15 LL -     Unit();
16 LL +     Unit;
17    |
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0618`.