rust/tests/ui/issues/issue-57399-self-return-impl-trait.rs
2023-01-11 09:32:08 +00:00

22 lines
215 B
Rust

// check-pass
trait T {
type T;
}
impl T for i32 {
type T = u32;
}
struct S<A> {
a: A,
}
impl From<u32> for S<<i32 as T>::T> {
fn from(a: u32) -> Self {
Self { a }
}
}
fn main() {}