1 // rust-lang/rust#60654: Do not ICE on an attempt to use GATs that is 2 // missing the feature gate. 3 4 struct Foo; 5 6 trait MyTrait { 7 type Item<T>; 8 //~^ ERROR generic associated types are unstable [E0658] 9 } 10 11 impl MyTrait for Foo { 12 type Item<T> = T; 13 //~^ ERROR generic associated types are unstable [E0658] 14 } 15 main()16fn main() { } 17