rust/src/test/ui/parser/issue-44406.stderr

34 lines
886 B
Plaintext
Raw Normal View History

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