docs

你正在阅读 v0.1.2 的文档。Nabi 0.1.2 已不再提供支持。 最新版本:v0.1.3 →

本页尚未翻译,以下为英文原文。

#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