]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/issues/issue-44406.stderr
Rollup merge of #93551 - GuillaumeGomez:ignore-package-json, r=Mark-Simulacrum
[rust.git] / src / test / ui / parser / issues / issue-44406.stderr
1 error: expected identifier, found keyword `true`
2   --> $DIR/issue-44406.rs:8:10
3    |
4 LL |     foo!(true);
5    |          ^^^^ expected identifier, found keyword
6    |
7 help: escape `true` to use it as an identifier
8    |
9 LL |     foo!(r#true);
10    |          ++
11
12 error: invalid `struct` delimiters or `fn` call arguments
13   --> $DIR/issue-44406.rs:3:9
14    |
15 LL |         bar(baz: $rest)
16    |         ^^^^^^^^^^^^^^^
17 ...
18 LL |     foo!(true);
19    |     ---------- in this macro invocation
20    |
21    = note: this error originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
22 help: if `bar` is a struct, use braces as delimiters
23    |
24 LL |         bar {  }
25    |             ~
26 help: if `bar` is a function, use the arguments directly
27    |
28 LL -         bar(baz: $rest)
29 LL +         bar(: $rest)
30    | 
31
32 error: aborting due to 2 previous errors
33