mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-29 20:46:07 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user