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