Skip to content

Commit 65c2d4c

Browse files
committed
Add test for issue 30472
1 parent 296010a commit 65c2d4c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
//@ check-pass
2+
3+
pub trait MyFrom<T> {}
4+
impl<T> MyFrom<T> for T {}
5+
6+
pub trait MyInto<T> {}
7+
impl<T, U> MyInto<U> for T where U: MyFrom<T> {}
8+
9+
10+
pub trait A<'self_> {
11+
type T;
12+
}
13+
pub trait B: for<'self_> A<'self_> {
14+
type U: for<'self_> MyFrom<<Self as A<'self_>>::T>;
15+
}
16+
17+
18+
pub struct M;
19+
impl<'self_> A<'self_> for M {
20+
type T = usize;
21+
}
22+
23+
impl B for M {
24+
type U = usize;
25+
}
26+
27+
28+
fn main() {}

0 commit comments

Comments
 (0)