summaryrefslogtreecommitdiffstats
path: root/tests/ui/traits/issue-82830.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/traits/issue-82830.rs')
-rw-r--r--tests/ui/traits/issue-82830.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/ui/traits/issue-82830.rs b/tests/ui/traits/issue-82830.rs
new file mode 100644
index 000000000..37bae2e90
--- /dev/null
+++ b/tests/ui/traits/issue-82830.rs
@@ -0,0 +1,18 @@
+// 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>;
+}