Closed valeth closed 4 years ago
As described in the documentation, it may be able to fix this warning by adding a supertrait or by bounding that method with Self: Sized
.
If the ways described in the documentation cannot fix this warning, please provide a minimal repro.
This did indeed fix the warning message, thank you.
@taiki-e It seems this only works if Send
is a direct super-trait. If Send
is a super-trait of a super-trait, the warning is still present, despite the bound being guaranteed... I'm guessing because it's not visible to the proc-macro in this case...
I'm currently getting this warning in a little test project of mine.
So any trait that implements an
async
function will no longer be able to be used as a trait object in some future release.