rust/tests/ui/traits/issue-82830.rs
2024-02-16 20:02:50 +00:00

19 lines
208 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>;
}