fork/rust

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

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

1.39.0
453 B18 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
6help: you can escape reserved keywords to use them as identifiers
7   |
8LL |     r#let foo: (),
9   |     ^^^^^
10
11error: expected `:`, found `foo`
12  --> $DIR/removed-syntax-field-let.rs:2:9
13   |
14LL |     let foo: (),
15   |         ^^^ expected `:`
16
17error: aborting due to 2 previous errors
18