#E0090: invalid coroutine use
A coroutine (async or yield) breaks a rule: await on something that is not a future, or a pointer into the coroutine's frame used after a suspension point. Await a future, and take pointers again after await or yield.
The usual cause is a pointer taken with addr_of inside an async or yield body and used after an await or yield: the frame may have moved, so take the pointer again after the suspension point. Awaiting a value that is not a future usually reports E0069, since await needs IntoFuture.
Related: E0059 keyword outside its context
Found a mistake? Edit this page on GitHub. Last updated