1 // rust-lang/rust#60654: Do not ICE on an attempt to use GATs that is
2 // missing the feature gate.
6 impl Iterator for Foo {
7 type Item<'b> = &'b Foo;
8 //~^ ERROR generic associated types are unstable [E0658]
9 //~| ERROR lifetime parameters or bounds on type `Item` do not match the trait declaration
11 fn next(&mut self) -> Option<Self::Item> {