rust/tests/ui/traits/issue-82830.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
207 B
Rust
Raw Normal View History

2022-08-10 11:47:26 -05:00
// check-pass
2022-05-25 08:14:20 -05:00
trait A<Y, N> {
type B;
}
type MaybeBox<T> = <T as A<T, Box<T>>>::B;
struct P {
2022-08-10 11:47:26 -05:00
t: MaybeBox<P>,
2022-05-25 08:14:20 -05:00
}
impl<Y, N> A<Y, N> for P {
type B = N;
}
fn main() {
let t: MaybeBox<P>;
}