summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-type-bounds/issue-79949.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/associated-type-bounds/issue-79949.rs')
-rw-r--r--src/test/ui/associated-type-bounds/issue-79949.rs26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/ui/associated-type-bounds/issue-79949.rs b/src/test/ui/associated-type-bounds/issue-79949.rs
new file mode 100644
index 000000000..9f924f1fd
--- /dev/null
+++ b/src/test/ui/associated-type-bounds/issue-79949.rs
@@ -0,0 +1,26 @@
+// check-pass
+
+#![allow(incomplete_features)]
+#![feature(associated_type_bounds)]
+#![feature(generic_associated_types)]
+
+trait MP {
+ type T<'a>;
+}
+struct S(String);
+impl MP for S {
+ type T<'a> = &'a str;
+}
+
+trait SR: MP {
+ fn sr<IM>(&self) -> i32
+ where
+ for<'a> IM: T<T: U<<Self as MP>::T<'a>>>;
+}
+
+trait T {
+ type T;
+}
+trait U<X> {}
+
+fn main() {}