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
|
2019-10-23 22:20:58 -07:00
|
|
|
|
|
2022-01-27 14:53:39 -08:00
|
|
|
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;
|
2022-01-27 14:53:39 -08:00
|
|
|
| ++
|
2019-01-13 14:18:00 +01:00
|
|
|
|
2020-03-14 15:28:17 +03: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`?
|
2022-05-22 11:48:35 +09:00
|
|
|
|
|
|
|
|
= help: consider adding `extern crate r#extern` to use the `r#extern` crate
|
2020-03-14 15:28:17 +03:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-01-13 14:18:00 +01:00
|
|
|
|
2020-03-14 15:28:17 +03:00
|
|
|
For more information about this error, try `rustc --explain E0432`.
|