mirror of
https://github.com/rust-lang/rust.git
synced 2024-10-31 14:31:55 +00:00
19 lines
207 B
Rust
19 lines
207 B
Rust
// check-pass
|
|
|
|
trait A<Y, N> {
|
|
type B;
|
|
}
|
|
|
|
type MaybeBox<T> = <T as A<T, Box<T>>>::B;
|
|
struct P {
|
|
t: MaybeBox<P>,
|
|
}
|
|
|
|
impl<Y, N> A<Y, N> for P {
|
|
type B = N;
|
|
}
|
|
|
|
fn main() {
|
|
let t: MaybeBox<P>;
|
|
}
|