summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/use-colon-as-mod-sep.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/use-colon-as-mod-sep.rs')
-rw-r--r--tests/ui/parser/use-colon-as-mod-sep.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/parser/use-colon-as-mod-sep.rs b/tests/ui/parser/use-colon-as-mod-sep.rs
new file mode 100644
index 000000000..e1e8756b0
--- /dev/null
+++ b/tests/ui/parser/use-colon-as-mod-sep.rs
@@ -0,0 +1,11 @@
+// Recover from using a colon as a path separator.
+
+use std::process:Command;
+//~^ ERROR expected `::`, found `:`
+use std:fs::File;
+//~^ ERROR expected `::`, found `:`
+use std:collections:HashMap;
+//~^ ERROR expected `::`, found `:`
+//~| ERROR expected `::`, found `:`
+
+fn main() { }