summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr')
-rw-r--r--tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr b/tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr
new file mode 100644
index 000000000..192ab5eb7
--- /dev/null
+++ b/tests/ui/parser/use-as-where-use-ends-with-mod-sep.stderr
@@ -0,0 +1,14 @@
+error: expected identifier, found keyword `as`
+ --> $DIR/use-as-where-use-ends-with-mod-sep.rs:1:16
+ |
+LL | use std::any:: as foo;
+ | ^^ expected identifier, found keyword
+
+error: expected one of `::`, `;`, or `as`, found `foo`
+ --> $DIR/use-as-where-use-ends-with-mod-sep.rs:1:19
+ |
+LL | use std::any:: as foo;
+ | ^^^ expected one of `::`, `;`, or `as`
+
+error: aborting due to 2 previous errors
+