@@ -8,7 +8,7 @@ LL | type Pointer<T>: Deref<Target = T>;
8
8
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
9
9
10
10
error[E0658]: generic associated types are unstable
11
- --> $DIR/feature-gate-generic_associated_types.rs:6 :5
11
+ --> $DIR/feature-gate-generic_associated_types.rs:7 :5
12
12
|
13
13
LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
14
14
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
17
17
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
18
18
19
19
error[E0658]: where clauses on associated types are unstable
20
- --> $DIR/feature-gate-generic_associated_types.rs:6 :5
20
+ --> $DIR/feature-gate-generic_associated_types.rs:7 :5
21
21
|
22
22
LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
23
23
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -26,7 +26,7 @@ LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
26
26
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
27
27
28
28
error[E0658]: generic associated types are unstable
29
- --> $DIR/feature-gate-generic_associated_types.rs:14 :5
29
+ --> $DIR/feature-gate-generic_associated_types.rs:16 :5
30
30
|
31
31
LL | type Pointer<Usize> = Box<Usize>;
32
32
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -35,7 +35,7 @@ LL | type Pointer<Usize> = Box<Usize>;
35
35
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
36
36
37
37
error[E0658]: generic associated types are unstable
38
- --> $DIR/feature-gate-generic_associated_types.rs:16 :5
38
+ --> $DIR/feature-gate-generic_associated_types.rs:18 :5
39
39
|
40
40
LL | type Pointer2<U32> = Box<U32>;
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -44,7 +44,7 @@ LL | type Pointer2<U32> = Box<U32>;
44
44
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
45
45
46
46
error[E0658]: where clauses on associated types are unstable
47
- --> $DIR/feature-gate-generic_associated_types.rs:21 :5
47
+ --> $DIR/feature-gate-generic_associated_types.rs:23 :5
48
48
|
49
49
LL | type Assoc where Self: Sized;
50
50
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -53,14 +53,30 @@ LL | type Assoc where Self: Sized;
53
53
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
54
54
55
55
error[E0658]: where clauses on associated types are unstable
56
- --> $DIR/feature-gate-generic_associated_types.rs:26 :5
56
+ --> $DIR/feature-gate-generic_associated_types.rs:28 :5
57
57
|
58
58
LL | type Assoc where Self: Sized = Foo;
59
59
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
60
60
|
61
61
= note: for more information, see https://github.com/rust-lang/rust/issues/44265
62
62
= help: add `#![feature(generic_associated_types)]` to the crate attributes to enable
63
63
64
- error: aborting due to 7 previous errors
64
+ error: type-generic associated types are not yet implemented
65
+ --> $DIR/feature-gate-generic_associated_types.rs:4:5
66
+ |
67
+ LL | type Pointer<T>: Deref<Target = T>;
68
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
69
+ |
70
+ = note: for more information, see https://github.com/rust-lang/rust/issues/44265
71
+
72
+ error: type-generic associated types are not yet implemented
73
+ --> $DIR/feature-gate-generic_associated_types.rs:7:5
74
+ |
75
+ LL | type Pointer2<T>: Deref<Target = T> where T: Clone, U: Clone;
76
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
77
+ |
78
+ = note: for more information, see https://github.com/rust-lang/rust/issues/44265
79
+
80
+ error: aborting due to 9 previous errors
65
81
66
82
For more information about this error, try `rustc --explain E0658`.
0 commit comments