fork/rust

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

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

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