diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/traits/issue-82830.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/ui/traits/issue-82830.rs b/src/test/ui/traits/issue-82830.rs new file mode 100644 index 000000000..c8289b2e3 --- /dev/null +++ b/src/test/ui/traits/issue-82830.rs @@ -0,0 +1,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>; +} |