summaryrefslogtreecommitdiff
path: root/tests/ui/parser/issues
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2023-01-15 17:49:34 +0100
committerLukas Markeffsky <@>2023-01-20 20:16:37 +0100
commit31443c63b520cc97a551fb7168d77abbe160b2ef (patch)
treebef2e699e835f563d95c6d17b91cc0a5bac2812d /tests/ui/parser/issues
parentb9e8286c85aa83fd7ff36603d394082024887dc9 (diff)
downloadrust-31443c63b520cc97a551fb7168d77abbe160b2ef.tar.gz
preserve delim spans during `macro_rules!` expansion if able
Diffstat (limited to 'tests/ui/parser/issues')
-rw-r--r--tests/ui/parser/issues/issue-44406.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/parser/issues/issue-44406.stderr b/tests/ui/parser/issues/issue-44406.stderr
index 1f0c1ea4c2f..de02ea85b27 100644
--- a/tests/ui/parser/issues/issue-44406.stderr
+++ b/tests/ui/parser/issues/issue-44406.stderr
@@ -21,8 +21,8 @@ LL | foo!(true);
= note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
help: if `bar` is a struct, use braces as delimiters
|
-LL | bar { }
- | ~
+LL | bar { baz: $rest }
+ | ~ ~
help: if `bar` is a function, use the arguments directly
|
LL - bar(baz: $rest)