fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
733 B24 linesraw
1error: expected identifier, found keyword `true`
2  --> $DIR/issue-44406.rs:8:10
3   |
4LL |     foo!(true);
5   |          ^^^^ expected identifier, found keyword
6help: you can escape reserved keywords to use them as identifiers
7   |
8LL |     foo!(r#true);
9   |          ^^^^^^
10
11error: expected type, found keyword `true`
12  --> $DIR/issue-44406.rs:8:10
13   |
14LL |         bar(baz: $rest)
15   |                - help: try using a semicolon: `;`
16...
17LL |     foo!(true);
18   |          ^^^^ expected type
19   |
20   = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `<expr>: <type>`
21   = note: for more information, see https://github.com/rust-lang/rust/issues/23416
22
23error: aborting due to 2 previous errors
24