@@ -14,22 +14,38 @@ LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
14
14
|
15
15
= help: add #![feature(generic_associated_types)] to the crate attributes to enable
16
16
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
+
17
25
error[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
19
27
|
20
28
LL | type Pointer<usize> = Box<usize>;
21
29
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
22
30
|
23
31
= help: add #![feature(generic_associated_types)] to the crate attributes to enable
24
32
25
33
error[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
27
35
|
28
36
LL | type Pointer2<u32> = Box<u32>;
29
37
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
30
38
|
31
39
= help: add #![feature(generic_associated_types)] to the crate attributes to enable
32
40
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
34
50
35
51
For more information about this error, try `rustc --explain E0658`.
0 commit comments