summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-path-shl.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-path-shl.rs')
-rw-r--r--src/test/ui/associated-path-shl.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/associated-path-shl.rs b/src/test/ui/associated-path-shl.rs
new file mode 100644
index 000000000..20a6fd83f
--- /dev/null
+++ b/src/test/ui/associated-path-shl.rs
@@ -0,0 +1,9 @@
+// Check that associated paths starting with `<<` are successfully parsed.
+
+fn main() {
+ let _: <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
+ let _ = <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
+ let <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
+ let 0 ..= <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
+ <<A>::B>::C; //~ ERROR cannot find type `A` in this scope
+}