You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error[E0191]: the value of the associated types `Value`, `ChildKey` and `Children` in `Hierarchy` must be specified
2
-
--> $DIR/issue-23595-1.rs:8:58
2
+
--> $DIR/issue-23595-1.rs:8:60
3
3
|
4
4
LL | type Value;
5
5
| ---------- `Value` defined here
6
6
LL | type ChildKey;
7
7
| ------------- `ChildKey` defined here
8
-
LL | type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
9
-
| ------------- `Children` defined here ^^^^^^^^^ help: specify the associated types: `Hierarchy<Value = Type, ChildKey = Type, Children = Type>`
8
+
LL | type Children = dyn Index<Self::ChildKey, Output = dyn Hierarchy>;
9
+
| ------------- `Children` defined here ^^^^^^^^^ help: specify the associated types: `Hierarchy<Value = Type, ChildKey = Type, Children = Type>`
10
10
11
-
error[E0277]: the size for values of type `(dyn Index<<Self as Hierarchy>::ChildKey, Output = (dyn Hierarchy + 'static)> + 'static)` cannot be known at compilation time
12
-
--> $DIR/issue-23595-1.rs:8:21
13
-
|
14
-
LL | type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
15
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time
16
-
|
17
-
= help: the trait `Sized` is not implemented for `(dyn Index<<Self as Hierarchy>::ChildKey, Output = (dyn Hierarchy + 'static)> + 'static)`
18
-
note: required by a bound in `Hierarchy::Children`
19
-
--> $DIR/issue-23595-1.rs:8:5
20
-
|
21
-
LL | type Children = dyn Index<Self::ChildKey, Output=dyn Hierarchy>;
22
-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Hierarchy::Children`
23
-
24
-
error: aborting due to 2 previous errors
11
+
error: aborting due to 1 previous error
25
12
26
-
Some errors have detailed explanations: E0191, E0277.
27
-
For more information about an error, try `rustc --explain E0191`.
13
+
For more information about this error, try `rustc --explain E0191`.
0 commit comments