blob: 84fbb47301f049e8b228617a21374e6298ca7374 [file] [log] [blame]
// rust-lang/rust#60654: Do not ICE on an attempt to use GATs that is
// missing the feature gate.
struct Foo;
impl Iterator for Foo {
type Item<'b> = &'b Foo; //~ ERROR generic associated types are unstable [E0658]
fn next(&mut self) -> Option<Self::Item> {
None
}
}
fn main() { }