fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
581 B20 linesraw
1error: expected identifier, found keyword `extern`
2  --> $DIR/keyword-extern-as-identifier-use.rs:1:5
3   |
4LL | use extern::foo;
5   |     ^^^^^^ expected identifier, found keyword
6   |
7help: you can escape reserved keywords to use them as identifiers
8   |
9LL | use r#extern::foo;
10   |     ^^^^^^^^
11
12error[E0432]: unresolved import `r#extern`
13  --> $DIR/keyword-extern-as-identifier-use.rs:1:5
14   |
15LL | use extern::foo;
16   |     ^^^^^^ maybe a missing crate `r#extern`?
17
18error: aborting due to 2 previous errors
19
20For more information about this error, try `rustc --explain E0432`.