2017-10-09 17:02:17 +00:00
|
|
|
error: expected identifier, found keyword `true`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-44406.rs:8:10
|
2017-10-09 17:02:17 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | foo!(true);
|
2018-01-06 22:43:20 +00:00
|
|
|
| ^^^^ expected identifier, found keyword
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2018-12-30 19:52:15 +00:00
|
|
|
help: you can escape reserved keywords to use them as identifiers
|
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | foo!(r#true);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~
|
2017-10-09 17:02:17 +00:00
|
|
|
|
2021-09-07 17:45:16 +00:00
|
|
|
error: invalid `struct` delimiters or `fn` call arguments
|
|
|
|
--> $DIR/issue-44406.rs:3:9
|
2017-10-09 17:02:17 +00:00
|
|
|
|
|
2018-02-23 00:42:32 +00:00
|
|
|
LL | bar(baz: $rest)
|
2021-09-07 17:45:16 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
2017-10-09 17:02:17 +00:00
|
|
|
...
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | foo!(true);
|
2021-09-07 17:45:16 +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
|
2019-07-17 18:40:36 +00:00
|
|
|
|
|
2021-09-07 17:45:16 +00:00
|
|
|
LL - bar(baz: $rest)
|
2021-09-20 15:39:16 +00:00
|
|
|
LL + bar(: $rest)
|
2021-09-07 17:45:16 +00:00
|
|
|
|
|
2017-10-09 17:02:17 +00:00
|
|
|
|
2018-03-15 15:13:47 +00:00
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|