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

19 lines
453 B
Text
Raw Normal View History

2018-10-20 23:36:17 +03:00
error: expected identifier, found keyword `let`
2018-12-25 08:56:47 -07:00
--> $DIR/removed-syntax-field-let.rs:4:5
2018-10-20 23:36:17 +03: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 23:36:17 +03:00
error: expected `:`, found `foo`
2018-12-25 08:56:47 -07:00
--> $DIR/removed-syntax-field-let.rs:4:9
2018-10-20 23:36:17 +03:00
|
LL | let foo: (),
| ^^^ expected `:`
error: aborting due to 2 previous errors