Rollup merge of #90961 - estebank:suggest-removal-of-call, r=nagisa

Suggest removal of arguments for unit variant, not replacement
This commit is contained in:
Yuki Okushi
2021-11-19 13:06:37 +09:00
committed by GitHub
5 changed files with 28 additions and 19 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ LL | X::Entry();
|
help: `X::Entry` is a unit variant, you need to write it without the parentheses
|
LL | X::Entry;
| ~~~~~~~~
LL - X::Entry();
LL + X::Entry;
|
error[E0618]: expected function, found `i32`
--> $DIR/E0618.rs:9:5