blob: dab68258a47204a59bb68c5107dc6e5de04af6e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
error: expected identifier, found keyword `extern`
--> $DIR/keyword-extern-as-identifier-use.rs:1:5
|
LL | use extern::foo;
| ^^^^^^ expected identifier, found keyword
|
help: escape `extern` to use it as an identifier
|
LL | use r#extern::foo;
| ++
error[E0432]: unresolved import `r#extern`
--> $DIR/keyword-extern-as-identifier-use.rs:1:5
|
LL | use extern::foo;
| ^^^^^^ use of unresolved module or unlinked crate `r#extern`
|
help: you might be missing a crate named `r#extern`, add it to your project and import it in your code
|
LL + extern crate r#extern;
|
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0432`.
|