summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs')
-rw-r--r--tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs b/tests/ui/parser/use-as-where-use-ends-with-mod-sep.rs
new file mode 100644
index 000000000..b4bb48418
--- /dev/null
+++ b/tests/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`