summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/impl-qpath.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/impl-qpath.rs')
-rw-r--r--tests/ui/parser/impl-qpath.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/impl-qpath.rs b/tests/ui/parser/impl-qpath.rs
new file mode 100644
index 000000000..d1f0a0204
--- /dev/null
+++ b/tests/ui/parser/impl-qpath.rs
@@ -0,0 +1,7 @@
+// check-pass
+// compile-flags: -Z parse-only
+
+impl <*const u8>::AssocTy {} // OK
+impl <Type as Trait>::AssocTy {} // OK
+impl <'a + Trait>::AssocTy {} // OK
+impl <<Type>::AssocTy>::AssocTy {} // OK