]> git.proxmox.com Git - rustc.git/blob - tests/ui/keyword/extern/keyword-extern-as-identifier-use.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / keyword / extern / keyword-extern-as-identifier-use.stderr
1 error: expected identifier, found keyword `extern`
2 --> $DIR/keyword-extern-as-identifier-use.rs:1:5
3 |
4 LL | use extern::foo;
5 | ^^^^^^ expected identifier, found keyword
6 |
7 help: escape `extern` to use it as an identifier
8 |
9 LL | use r#extern::foo;
10 | ++
11
12 error[E0432]: unresolved import `r#extern`
13 --> $DIR/keyword-extern-as-identifier-use.rs:1:5
14 |
15 LL | use extern::foo;
16 | ^^^^^^ maybe a missing crate `r#extern`?
17 |
18 = help: consider adding `extern crate r#extern` to use the `r#extern` crate
19
20 error: aborting due to 2 previous errors
21
22 For more information about this error, try `rustc --explain E0432`.