We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6df26f8 commit b6647b5Copy full SHA for b6647b5
src/test/ui/associated-type-bounds/issue-79949.rs
@@ -0,0 +1,26 @@
1
+// check-pass
2
+
3
+#![allow(incomplete_features)]
4
+#![feature(associated_type_bounds)]
5
+#![feature(generic_associated_types)]
6
7
+trait MP {
8
+ type T<'a>;
9
+}
10
+struct S(String);
11
+impl MP for S {
12
+ type T<'a> = &'a str;
13
14
15
+trait SR: MP {
16
+ fn sr<IM>(&self) -> i32
17
+ where
18
+ for<'a> IM: T<T: U<<Self as MP>::T<'a>>>;
19
20
21
+trait T {
22
+ type T;
23
24
+trait U<X> {}
25
26
+fn main() {}
0 commit comments