about summary refs log tree commit diff
path: root/tests/ui/generics/single-colon-path-not-const-generics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/generics/single-colon-path-not-const-generics.rs')
-rw-r--r--tests/ui/generics/single-colon-path-not-const-generics.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/ui/generics/single-colon-path-not-const-generics.rs b/tests/ui/generics/single-colon-path-not-const-generics.rs
new file mode 100644
index 00000000000..55a7ae0bb6d
--- /dev/null
+++ b/tests/ui/generics/single-colon-path-not-const-generics.rs
@@ -0,0 +1,13 @@
+pub mod foo {
+    pub mod bar {
+        pub struct A;
+    }
+}
+
+pub struct Foo {
+  a: Vec<foo::bar:A>,
+  //~^ ERROR expected
+  //~| HELP path separator
+}
+
+fn main() {}