diff options
| author | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-16 20:35:26 +0000 |
|---|---|---|
| committer | Esteban Kuber <esteban@kuber.com.ar> | 2021-11-16 20:40:35 +0000 |
| commit | 4ca4e094abf6ef2c4871aa6b395e85e8843eb4a8 (patch) | |
| tree | efbc86ba130b0d556ba9f4fc6223347e33e3cc0d /src/test/ui/error-codes | |
| parent | e90c5fbbc5df5c81267747daeb937d4e955ce6ad (diff) | |
| download | rust-4ca4e094abf6ef2c4871aa6b395e85e8843eb4a8.tar.gz rust-4ca4e094abf6ef2c4871aa6b395e85e8843eb4a8.zip | |
Suggest removal of arguments for unit variant, not replacement
Diffstat (limited to 'src/test/ui/error-codes')
| -rw-r--r-- | src/test/ui/error-codes/E0618.stderr | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/ui/error-codes/E0618.stderr b/src/test/ui/error-codes/E0618.stderr index db1b3f09837..a3a90968df7 100644 --- a/src/test/ui/error-codes/E0618.stderr +++ b/src/test/ui/error-codes/E0618.stderr @@ -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 |
