@@ -14,22 +14,38 @@ LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
1414 |
1515 = help: add #![feature(generic_associated_types)] to the crate attributes to enable
1616
17+ error[E0658]: where clauses on associated types are unstable (see issue #44265)
18+ --> $DIR/feature-gate-generic_associated_types.rs:16:5
19+ |
20+ LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
21+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22+ |
23+ = help: add #![feature(generic_associated_types)] to the crate attributes to enable
24+
1725error[E0658]: generic associated types are unstable (see issue #44265)
18- --> $DIR/feature-gate-generic_associated_types.rs:22 :5
26+ --> $DIR/feature-gate-generic_associated_types.rs:23 :5
1927 |
2028LL | type Pointer<usize> = Box<usize>;
2129 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2230 |
2331 = help: add #![feature(generic_associated_types)] to the crate attributes to enable
2432
2533error[E0658]: generic associated types are unstable (see issue #44265)
26- --> $DIR/feature-gate-generic_associated_types.rs:24 :5
34+ --> $DIR/feature-gate-generic_associated_types.rs:25 :5
2735 |
2836LL | type Pointer2<u32> = Box<u32>;
2937 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3038 |
3139 = help: add #![feature(generic_associated_types)] to the crate attributes to enable
3240
33- error: aborting due to 4 previous errors
41+ error[E0658]: where clauses on associated types are unstable (see issue #44265)
42+ --> $DIR/feature-gate-generic_associated_types.rs:30:5
43+ |
44+ LL | type Assoc where Self: Sized;
45+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
46+ |
47+ = help: add #![feature(generic_associated_types)] to the crate attributes to enable
48+
49+ error: aborting due to 6 previous errors
3450
3551For more information about this error, try `rustc --explain E0658`.
0 commit comments