summaryrefslogtreecommitdiffstats
path: root/src/test/ui/generics/single-colon-path-not-const-generics.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/generics/single-colon-path-not-const-generics.rs')
-rw-r--r--src/test/ui/generics/single-colon-path-not-const-generics.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/test/ui/generics/single-colon-path-not-const-generics.rs b/src/test/ui/generics/single-colon-path-not-const-generics.rs
new file mode 100644
index 000000000..55a7ae0bb
--- /dev/null
+++ b/src/test/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() {}