fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
571 B18 linesraw
1error: expected identifier, found keyword `as`
2  --> $DIR/use-as-where-use-ends-with-mod-sep.rs:1:16
3   |
4LL | use std::any:: as foo;
5   |                ^^ expected identifier, found keyword
6help: you can escape reserved keywords to use them as identifiers
7   |
8LL | use std::any:: r#as foo;
9   |                ^^^^
10
11error: expected one of `::`, `;`, or `as`, found `foo`
12  --> $DIR/use-as-where-use-ends-with-mod-sep.rs:1:19
13   |
14LL | use std::any:: as foo;
15   |                   ^^^ expected one of `::`, `;`, or `as` here
16
17error: aborting due to 2 previous errors
18