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