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
|
2018-12-30 11:52:15 -08:00
|
|
|
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
|
|
|
|
|