]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/use-as-where-use-ends-with-mod-sep.stderr
Auto merge of #51285 - Mark-Simulacrum:remove-quote_apis, r=Manishearth
[rust.git] / src / test / ui / parser / use-as-where-use-ends-with-mod-sep.stderr
1 error: expected identifier, found keyword `as`
2   --> $DIR/use-as-where-use-ends-with-mod-sep.rs:3:16
3    |
4 LL | use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
5    |                ^^ expected identifier, found keyword
6 help: you can escape reserved keywords to use them as identifiers
7    |
8 LL | use std::any:: r#as foo; //~ ERROR expected identifier, found keyword `as`
9    |                ^^^^
10
11 error: expected one of `::`, `;`, or `as`, found `foo`
12   --> $DIR/use-as-where-use-ends-with-mod-sep.rs:3:19
13    |
14 LL | use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
15    |                   ^^^ expected one of `::`, `;`, or `as` here
16
17 error: aborting due to 2 previous errors
18