fork/rust

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

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
576 B19 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
6   |
7help: you can escape reserved keywords to use them as identifiers
8   |
9LL | use std::any:: r#as foo;
10   |                ^^^^
11
12error: expected one of `::`, `;`, or `as`, found `foo`
13  --> $DIR/use-as-where-use-ends-with-mod-sep.rs:1:19
14   |
15LL | use std::any:: as foo;
16   |                   ^^^ expected one of `::`, `;`, or `as` here
17
18error: aborting due to 2 previous errors
19