mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
22 lines
215 B
Rust
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() {}
|