If I forget async in fn declaration in an async trait but don't forget in its implementation in an impl of a struct, the Rust error message is cryptic:
lifetime parameters or bounds on method `get_upstream_stream` do not match the trait declaration
lifetimes do not match method in traitrustcE0195
cache.rs(73, 27): lifetimes in impl do not match this method in trait
View Problem
Seems like it's your editor that is rendering that particularly unhelpfully. The real diagnostic from rustc is as follows, which clearly shows the difference in async.
If I forget
async
infn
declaration in an async trait but don't forget in its implementation in animpl
of astruct
, the Rust error message is cryptic:Sorry, I'm too busy now to give details.