diff options
Diffstat (limited to 'tests/ui/generic-associated-types/issue-93262.rs')
-rw-r--r-- | tests/ui/generic-associated-types/issue-93262.rs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/ui/generic-associated-types/issue-93262.rs b/tests/ui/generic-associated-types/issue-93262.rs new file mode 100644 index 000000000..a7bcd111d --- /dev/null +++ b/tests/ui/generic-associated-types/issue-93262.rs @@ -0,0 +1,19 @@ +// check-pass + +pub trait Trait { + type Assoc<'a> where Self: 'a; +} + +pub trait Foo<T: Trait> +where + for<'a> T::Assoc<'a>: Clone +{} + +pub struct Type; + +impl<T: Trait> Foo<T> for Type +where + for<'a> T::Assoc<'a>: Clone +{} + +fn main() {} |