summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/issues/issue-44406.stderr
blob: 69ff64c2772de92f24daff8a8f5e119d4a3286c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
error: invalid `struct` delimiters or `fn` call arguments
  --> $DIR/issue-44406.rs:3:9
   |
LL |         bar(baz: $rest)
   |         ^^^^^^^^^^^^^^^
...
LL |     foo!(true);
   |     ---------- in this macro invocation
   |
   = 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 { baz: $rest }
   |             ~            ~
help: if `bar` is a function, use the arguments directly
   |
LL -         bar(baz: $rest)
LL +         bar(: $rest)
   |

error: aborting due to previous error