1
Fork 0
rust/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.stderr

19 lines
721 B
Text
Raw Normal View History

2018-10-20 23:36:17 +03:00
error: expected identifier, found keyword `as`
2018-12-25 08:56:47 -07:00
--> $DIR/use-as-where-use-ends-with-mod-sep.rs:3:16
2018-10-20 23:36:17 +03:00
|
LL | use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
| ^^ expected identifier, found keyword
help: you can escape reserved keywords to use them as identifiers
|
LL | use std::any:: r#as foo; //~ ERROR expected identifier, found keyword `as`
| ^^^^
2018-10-20 23:36:17 +03:00
error: expected one of `::`, `;`, or `as`, found `foo`
2018-12-25 08:56:47 -07:00
--> $DIR/use-as-where-use-ends-with-mod-sep.rs:3:19
2018-10-20 23:36:17 +03:00
|
LL | use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
| ^^^ expected one of `::`, `;`, or `as` here
error: aborting due to 2 previous errors