fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
458 B19 linesraw
1error: expected identifier, found keyword `let`
2  --> $DIR/removed-syntax-field-let.rs:2:5
3   |
4LL |     let foo: (),
5   |     ^^^ expected identifier, found keyword
6   |
7help: you can escape reserved keywords to use them as identifiers
8   |
9LL |     r#let foo: (),
10   |     ^^^^^
11
12error: expected `:`, found `foo`
13  --> $DIR/removed-syntax-field-let.rs:2:9
14   |
15LL |     let foo: (),
16   |         ^^^ expected `:`
17
18error: aborting due to 2 previous errors
19