diff options
Diffstat (limited to 'tests/ui/generic-associated-types/issue-88405.rs')
-rw-r--r-- | tests/ui/generic-associated-types/issue-88405.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-88405.rs b/tests/ui/generic-associated-types/issue-88405.rs new file mode 100644 index 000000000..8dad6a89f --- /dev/null +++ b/tests/ui/generic-associated-types/issue-88405.rs @@ -0,0 +1,14 @@ +// check-pass + +trait SomeTrait {} +trait OtherTrait { + type Item; +} + +trait ErrorSimpleExample { + type AssociatedType: SomeTrait; + type GatBounded<T: SomeTrait>; + type ErrorMinimal: OtherTrait<Item = Self::GatBounded<Self::AssociatedType>>; +} + +fn main() {} |