2021-09-07 12:45:16 -05:00
|
|
|
error: invalid `struct` delimiters or `fn` call arguments
|
|
|
|
--> $DIR/issue-44406.rs:3:9
|
2017-10-09 12:02:17 -05:00
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | bar(baz: $rest)
|
2021-09-07 12:45:16 -05:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2017-10-09 12:02:17 -05:00
|
|
|
...
|
2019-03-09 06:03:44 -06:00
|
|
|
LL | foo!(true);
|
2021-10-14 13:28:28 -05:00
|
|
|
| ---------- in this macro invocation
|
2021-09-07 12:45:16 -05:00
|
|
|
|
|
|
|
|
= 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
|
|
|
|
|
|
2023-01-15 10:49:34 -06:00
|
|
|
LL | bar { baz: $rest }
|
|
|
|
| ~ ~
|
2021-09-07 12:45:16 -05:00
|
|
|
help: if `bar` is a function, use the arguments directly
|
2019-07-17 13:40:36 -05:00
|
|
|
|
|
2021-09-07 12:45:16 -05:00
|
|
|
LL - bar(baz: $rest)
|
2021-09-20 10:39:16 -05:00
|
|
|
LL + bar(: $rest)
|
2022-06-08 12:34:57 -05:00
|
|
|
|
|
2017-10-09 12:02:17 -05:00
|
|
|
|
2022-11-16 14:46:06 -06:00
|
|
|
error: aborting due to previous error
|
2018-03-15 10:13:47 -05:00
|
|
|
|