summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-type-bounds/supertrait-referencing-self.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-type-bounds/supertrait-referencing-self.rs')
-rw-r--r--src/test/ui/associated-type-bounds/supertrait-referencing-self.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/supertrait-referencing-self.rs b/src/test/ui/associated-type-bounds/supertrait-referencing-self.rs
new file mode 100644
index 000000000..c82ec01f4
--- /dev/null
+++ b/src/test/ui/associated-type-bounds/supertrait-referencing-self.rs
@@ -0,0 +1,12 @@
+// check-pass
+trait Foo {
+ type Bar;
+}
+trait Qux: Foo + AsRef<Self::Bar> {}
+trait Foo2 {}
+
+trait Qux2: Foo2 + AsRef<Self::Bar> {
+ type Bar;
+}
+
+fn main() {}