diff options
author | Matthias Krüger <matthias.krueger@famsik.de> | 2023-02-16 17:51:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-16 17:51:24 +0100 |
commit | f65c6e416c6f401c332149da8f8ad1d7b8a218a7 (patch) | |
tree | 2df99e5c84a8c16679f63e9c428e1d8de916e5e1 /tests/ui/issues/issue-26094.stderr | |
parent | af3c8b27266e290cf65704284f6862d0f90ee4fc (diff) | |
parent | dff10d0668a1e89782fb660e033d6a57ab122266 (diff) | |
download | rust-f65c6e416c6f401c332149da8f8ad1d7b8a218a7.tar.gz |
Rollup merge of #106347 - estebank:removal-suggestion, r=TaKO8Ki
More accurate spans for arg removal suggestion
Partially address #106304.
Diffstat (limited to 'tests/ui/issues/issue-26094.stderr')
-rw-r--r-- | tests/ui/issues/issue-26094.stderr | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/ui/issues/issue-26094.stderr b/tests/ui/issues/issue-26094.stderr index 881a6e538ee..608d2c7aff9 100644 --- a/tests/ui/issues/issue-26094.stderr +++ b/tests/ui/issues/issue-26094.stderr @@ -2,7 +2,10 @@ error[E0061]: this function takes 0 arguments but 1 argument was supplied --> $DIR/issue-26094.rs:10:17 | LL | $other(None) - | ---- argument of type `Option<_>` unexpected + | ---- + | | + | unexpected argument of type `Option<_>` + | help: remove the extra argument ... LL | some_macro!(some_function); | ^^^^^^^^^^^^^ @@ -12,10 +15,6 @@ note: function defined here | LL | fn some_function() {} | ^^^^^^^^^^^^^ -help: remove the extra argument - | -LL | some_function() - | ~~~~~~~~~~~~~~~ error: aborting due to previous error |