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
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `Foo` cannot be made into an object
15
6
|
16
7
= help: consider moving `A` to another trait
17
8
note: for a trait to be "object safe" it needs to allow building a vtable to allow the call to be resolvable dynamically; for more information visit <https://doc.rust-lang.org/reference/items/traits.html#object-safety>
18
-
--> $DIR/gat-in-trait-path.rs:6:10
9
+
--> $DIR/gat-in-trait-path.rs:5:10
19
10
|
20
11
LL | trait Foo {
21
12
| --- this trait cannot be made into an object...
22
13
LL | type A<'a> where Self: 'a;
23
14
| ^ ...because it contains the generic associated type `A`
24
15
25
-
error: aborting due to previous error; 1 warning emitted
16
+
error: aborting due to previous error
26
17
27
18
For more information about this error, try `rustc --explain E0038`.
0 commit comments