diff options
Diffstat (limited to 'src/test/ui/generic-associated-types/issue-92280.rs')
-rw-r--r-- | src/test/ui/generic-associated-types/issue-92280.rs | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/test/ui/generic-associated-types/issue-92280.rs b/src/test/ui/generic-associated-types/issue-92280.rs new file mode 100644 index 000000000..81d000f10 --- /dev/null +++ b/src/test/ui/generic-associated-types/issue-92280.rs @@ -0,0 +1,25 @@ +// check-pass + +#![feature(generic_associated_types)] +#![allow(non_camel_case_types)] + +trait HasAssoc { + type Assoc; +} + +trait Iterate<S: HasAssoc> { + type Iter<'a> + where + Self: 'a; +} + +struct KeySegment_Broken<T> { + key: T, +} +impl<S: HasAssoc> Iterate<S> for KeySegment_Broken<S::Assoc> { + type Iter<'a> = () + where + Self: 'a; +} + +fn main() {} |