mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 19:27:30 +03:00
4d6f74b450
Reword E0626 to mention static coroutine, add structured suggestion for adding `static`
Not certain how to make the example feel less artificial. 🤷
My main point though is that we should probably emphasize that the first solution to making a coroutine allow a borrow across an await is making it `static`.
Also adds a structured suggestion.