fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
625 B22 linesraw
1error: invalid `struct` delimiters or `fn` call arguments
2  --> $DIR/issue-44406.rs:3:9
3   |
4LL |         bar(baz: $rest)
5   |         ^^^^^^^^^^^^^^^
6...
7LL |     foo!(true);
8   |     ---------- in this macro invocation
9   |
10   = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
11help: if `bar` is a struct, use braces as delimiters
12   |
13LL |         bar { baz: $rest }
14   |             ~            ~
15help: if `bar` is a function, use the arguments directly
16   |
17LL -         bar(baz: $rest)
18LL +         bar(: $rest)
19   |
20
21error: aborting due to previous error
22