Closed simonsan closed 3 months ago
The reason is you haven't disabled the use of the async-trait
feature on ractor, which is a default feature. If you want to use the new async fn in traits functionality, you have to bring ractor to the same.
The default mode, in order to not break backwards compatibility and while we assess the impact of not boxing the futures, is to continue using async-trait for the time being
Related #202
Describe the bug
When you copy one of the examples or in general use the 'implement missing members' of
rust-analyzer
you'll geterror[E0195]: lifetime parameters or bounds on method '<method>' do not match the trait declaration
. This could be related to the removal ofasync_trait
, I assume?To Reproduce Steps to reproduce the behaviour:
main.rs
cargo check
Expected behaviour It works without manually researching on the error.
Additional context