summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs')
-rw-r--r--src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs b/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs
new file mode 100644
index 000000000..b4bb48418
--- /dev/null
+++ b/src/test/ui/parser/use-as-where-use-ends-with-mod-sep.rs
@@ -0,0 +1,2 @@
+use std::any:: as foo; //~ ERROR expected identifier, found keyword `as`
+//~^ ERROR: expected one of `::`, `;`, or `as`, found `foo`