summaryrefslogtreecommitdiffstats
path: root/src/test/ui/traits/issue-82830.rs
blob: c8289b2e30b4d41e1c35eeb2ea43a55b3ec34b99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
trait A<Y, N> {
    type B;
}

type MaybeBox<T> = <T as A<T, Box<T>>>::B;
struct P {
    t: MaybeBox<P>, //~ ERROR: overflow evaluating the requirement `P: Sized`
}

impl<Y, N> A<Y, N> for P {
    type B = N;
}

fn main() {
    let t: MaybeBox<P>;
}