// check-pass #![feature(generic_associated_types)] #![allow(non_camel_case_types)] trait HasAssoc { type Assoc; } trait Iterate { type Iter<'a> where Self: 'a; } struct KeySegment_Broken { key: T, } impl Iterate for KeySegment_Broken { type Iter<'a> = () where Self: 'a; } fn main() {}