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
This resulted in an implementation for any lifecycle, resulting in an error:
error: lifetime may not live long enough
--> src\lib.rs:812:10
|
812 | #[derive(GcTraget)]
| ^^^^^^^^
| |
| lifetime `'regc_lifetime` defined here
| argument requires that `'regc_lifetime` must outlive `'c`
813 | struct A<'c, S> {
| -- lifetime `'c` defined here
|
= help: consider adding the following bound: `'regc_lifetime: 'c`
= note: requirement occurs because of a mutable reference to `GcTraceToken<'_>`
= note: mutable references are invariant over their type parameter
= help: see <https://doc.rust-lang.org/nomicon/subtyping.html> for more information about variance
= note: this error originates in the derive macro `GcTraget` (in Nightly builds, run with -Z macro-backtrace for more info)
Error disappears after adding where GcRoot.
What I mean is, in add_trait_bounds In the implementation of boundaries', there seems to be a lack of consideration for the lifecycle,but they are also part of the type.
The text was updated successfully, but these errors were encountered:
The following code
in
generate
Missing
This resulted in an implementation for any lifecycle, resulting in an error:
Error disappears after adding where GcRoot.
What I mean is, in
add_trait_bounds
In the implementation of boundaries', there seems to be a lack of consideration for the lifecycle,but they are also part of the type.The text was updated successfully, but these errors were encountered: