diff options
Diffstat (limited to 'tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs')
-rw-r--r-- | tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs b/tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs new file mode 100644 index 000000000..0fd2c7079 --- /dev/null +++ b/tests/ui/associated-types/normalize-cycle-in-eval-no-region.rs @@ -0,0 +1,20 @@ +// Case that the fix for #74868 also allowed to compile + +// check-pass + +trait BoxedDsl { + type Output; +} + +impl<T> BoxedDsl for T +where + T: BoxedDsl, +{ + type Output = <T as BoxedDsl>::Output; +} + +trait HandleUpdate {} + +impl<T> HandleUpdate for T where T: BoxedDsl<Output = ()> {} + +fn main() {} |