fork/rust

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

borsAuto merge of #71868 - Mark-Simulacrum:stable-1.43.1, r=pietroalbini8d69840ab92

1.43.1
752 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: see issue #23416 <https://github.com/rust-lang/rust/issues/23416> for more information
23
24error: aborting due to 2 previous errors
25