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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
642 B
Plaintext
Raw Normal View History

2019-01-13 14:18:00 +01:00
error: expected identifier, found keyword `extern`
--> $DIR/keyword-extern-as-identifier-use.rs:1:5
|
2019-03-09 15:03:44 +03:00
LL | use extern::foo;
2019-01-13 14:18:00 +01:00
| ^^^^^^ expected identifier, found keyword
|
help: escape `extern` to use it as an identifier
2019-01-13 14:18:00 +01:00
|
2019-03-09 15:03:44 +03:00
LL | use r#extern::foo;
| ++
2019-01-13 14:18:00 +01:00
error[E0432]: unresolved import `r#extern`
--> $DIR/keyword-extern-as-identifier-use.rs:1:5
|
LL | use extern::foo;
| ^^^^^^ maybe a missing crate `r#extern`?
|
= help: consider adding `extern crate r#extern` to use the `r#extern` crate
error: aborting due to 2 previous errors
2019-01-13 14:18:00 +01:00
For more information about this error, try `rustc --explain E0432`.