2024-07-12 20:16:30 -05:00
|
|
|
//@ check-pass
|
2024-07-12 19:36:21 -05:00
|
|
|
// https://github.com/rust-lang/rust/issues/102154
|
|
|
|
|
2022-11-14 16:42:57 -06:00
|
|
|
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>;
|
|
|
|
}
|