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/empty/empty-struct-unit-expr.stderr | |
| 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/empty/empty-struct-unit-expr.stderr')
| -rw-r--r-- | src/test/ui/empty/empty-struct-unit-expr.stderr | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/test/ui/empty/empty-struct-unit-expr.stderr b/src/test/ui/empty/empty-struct-unit-expr.stderr index 26bfc4355fa..81651c5bf6f 100644 --- a/src/test/ui/empty/empty-struct-unit-expr.stderr +++ b/src/test/ui/empty/empty-struct-unit-expr.stderr @@ -22,8 +22,9 @@ LL | let e4 = E::Empty4(); | help: `E::Empty4` is a unit variant, you need to write it without the parentheses | -LL | let e4 = E::Empty4; - | ~~~~~~~~~ +LL - let e4 = E::Empty4(); +LL + let e4 = E::Empty4; + | error[E0618]: expected function, found `empty_struct::XEmpty2` --> $DIR/empty-struct-unit-expr.rs:18:15 @@ -43,8 +44,9 @@ LL | let xe4 = XE::XEmpty4(); | help: `XE::XEmpty4` is a unit variant, you need to write it without the parentheses | -LL | let xe4 = XE::XEmpty4; - | ~~~~~~~~~~~ +LL - let xe4 = XE::XEmpty4(); +LL + let xe4 = XE::XEmpty4; + | error: aborting due to 4 previous errors |
