]> git.lizzy.rs Git - rust.git/blob - src/test/ui/generic-associated-types/gat-dont-ice-on-absent-feature-2.rs
Rollup merge of #67299 - christianpoveda:try_immty_from_int, r=RalfJung
[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     //~| ERROR type-generic associated types are not yet implemented
10 }
11
12 impl MyTrait for Foo {
13     type Item<T> = T;
14     //~^ ERROR generic associated types are unstable [E0658]
15 }
16
17 fn main() { }