rust/src/test/ui/parser/removed-syntax-field-let.stderr

19 lines
453 B
Plaintext
Raw Normal View History

2018-10-20 15:36:17 -05:00
error: expected identifier, found keyword `let`
2018-12-25 09:56:47 -06:00
--> $DIR/removed-syntax-field-let.rs:4:5
2018-10-20 15:36:17 -05:00
|
LL | let foo: (),
| ^^^ expected identifier, found keyword
help: you can escape reserved keywords to use them as identifiers
|
LL | r#let foo: (),
| ^^^^^
2018-10-20 15:36:17 -05:00
error: expected `:`, found `foo`
2018-12-25 09:56:47 -06:00
--> $DIR/removed-syntax-field-let.rs:4:9
2018-10-20 15:36:17 -05:00
|
LL | let foo: (),
| ^^^ expected `:`
error: aborting due to 2 previous errors