rust/tests/ui/keyword/extern/keyword-extern-as-identifier-pat.stderr

14 lines
329 B
Plaintext
Raw Normal View History

error: expected identifier, found keyword `extern`
2019-01-13 07:18:00 -06:00
--> $DIR/keyword-extern-as-identifier-pat.rs:2:9
|
2019-03-09 06:03:44 -06:00
LL | let extern = 0;
| ^^^^^^ expected identifier, found keyword
|
help: escape `extern` to use it as an identifier
|
LL | let r#extern = 0;
| ++
2019-01-13 07:18:00 -06:00
error: aborting due to previous error