#![allow(incomplete_features)]
#![feature(generic_associated_types)]
-// FIXME(generic-associated-types) Investigate why this doesn't compile.
+// check-pass
trait Iterator {
type Item<'a>: 'a;
- //~^ ERROR the requirement `for<'a> <Self as Iterator>::Item<'a>: 'a` is not satisfied
+}
+
+impl Iterator for () {
+ type Item<'a> = &'a ();
}
fn main() {}