]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-dont-ice-on-absent-feature-2.rs
Auto merge of #99612 - yanchen4791:issue-95079-fix, r=compiler-errors
[rust.git] / src / test / ui / generic-associated-types / gat-dont-ice-on-absent-feature-2.rs
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
16 fn main() { }