about summary refs log tree commit diff
path: root/src/test/ui/error-codes
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-11-19 13:06:37 +0900
committerGitHub <noreply@github.com>2021-11-19 13:06:37 +0900
commitc74ff8b563358435fa0da50e949159d043efc1a5 (patch)
tree9f94b803a75b523c4ff6d6aa254f732c12b88746 /src/test/ui/error-codes
parent022709f4790294bed83b71886dbb52b0c48480b2 (diff)
parent4ca4e094abf6ef2c4871aa6b395e85e8843eb4a8 (diff)
downloadrust-c74ff8b563358435fa0da50e949159d043efc1a5.tar.gz
rust-c74ff8b563358435fa0da50e949159d043efc1a5.zip
Rollup merge of #90961 - estebank:suggest-removal-of-call, r=nagisa
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.stderr5
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