-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot infer an appropriate lifetime #108
Comments
Please provide a minimal compilable repro. Compiling the code you gave produces a different error message from the one you are asking about, and it looks like much of the code may not be directly involved so could be simplified while still reproducing the same error. |
I could reproduce this error by modified the code you gave. Cause: Workaround: - impl<'s, T: System<'s>> DynSystem for T {
+ impl<T> DynSystem for T
+ where
+ for<'a> T: System<'a> + Send,
+ { |
Yes, excuse that. I forgot my proper issue reporting etiquette. I will keep this in mind for next time :) taiki-e, thanks for the heads up. Good to know this was an actual bug that i just reported badly, and not an error with what i was trying to do :) |
Hi again! I believe i ran into a similar issue again. Heres a reproducible example. Is there a way to circumvent this in this case or am i simply approaching this wrong? |
@wrckn (async-trait automatically adds |
Fixed by async-trait 0.1.43. |
Hi! First off - excuse myself. Im not even sure if this qualifies as a bug.
However, here is what i am trying to do:
The above code fails with
Cannot infer an appropriate lifetime for 's due to conflicting requirements
.Any help would be much appreciated!
The text was updated successfully, but these errors were encountered: