rust/tests/ui/parser/issues/issue-44406.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
863 B
Plaintext
Raw Normal View History

error: expected identifier, found keyword `true`
2018-12-25 15:56:47 +00:00
--> $DIR/issue-44406.rs:8:10
|
2019-03-09 12:03:44 +00:00
LL | foo!(true);
| ^^^^ expected identifier, found keyword
|
help: escape `true` to use it as an identifier
|
2019-03-09 12:03:44 +00:00
LL | foo!(r#true);
| ++
error: invalid `struct` delimiters or `fn` call arguments
--> $DIR/issue-44406.rs:3:9
|
2018-02-23 00:42:32 +00:00
LL | bar(baz: $rest)
| ^^^^^^^^^^^^^^^
...
2019-03-09 12:03:44 +00:00
LL | foo!(true);
2021-10-14 18:28:28 +00:00
| ---------- 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 { }
| ~
help: if `bar` is a function, use the arguments directly
|
LL - bar(baz: $rest)
LL + bar(: $rest)
2022-06-08 17:34:57 +00:00
|
2018-03-15 15:13:47 +00:00
error: aborting due to 2 previous errors