Skip to content

Commit b6647b5

Browse files
committed
Add test for issue #79949
1 parent 6df26f8 commit b6647b5

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)