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
In my opinion this is valid, but the compiler complains:
error: lifetime may not live long enough
--> crates\kamel-egui\src\systems.rs:56:10
|
56 | #[derive(SystemParam)]
| ^^^^^^^^^^^
| |
| lifetime `'s` defined here
| lifetime `'s2` defined here
| associated function was supposed to return data with lifetime `'s2` but it is returning data with lifetime `'s`
|
= help: consider adding the following bound: `'s:'s2`
= note: this error originates in the derive macro `SystemParam` (in Nightly builds, run with -Z macro-backtrace for more info)
As the error already says, a structure with the lifetime 's is returned, but the function has a return type with the lifetime 's2.
I don't know if the error only occurs because I'm using something incorrectly, but even if I am, I don't really find the error message accurate.
The text was updated successfully, but these errors were encountered:
Bevy Version
The latest version on github (a441939)
I am getting a problem when using
#[derive(SystemParam)]
. My structure is the following :In my opinion this is valid, but the compiler complains:
I expanded the macro using cargo expand.
As the error already says, a structure with the lifetime
's
is returned, but the function has a return type with the lifetime's2
.I don't know if the error only occurs because I'm using something incorrectly, but even if I am, I don't really find the error message accurate.
The text was updated successfully, but these errors were encountered: