We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9921cd2 commit 78d94eeCopy full SHA for 78d94ee
core/src/ops/coroutine.rs
@@ -76,6 +76,7 @@ pub trait Coroutine<R = ()> {
76
/// values which are allowed to be returned each time a coroutine yields.
77
/// For example an iterator-as-a-coroutine would likely have this type as
78
/// `T`, the type being iterated over.
79
+ #[cfg_attr(not(bootstrap), lang = "coroutine_yield")]
80
type Yield;
81
82
/// The type of value this coroutine returns.
@@ -84,6 +85,7 @@ pub trait Coroutine<R = ()> {
84
85
/// `return` statement or implicitly as the last expression of a coroutine
86
/// literal. For example futures would use this as `Result<T, E>` as it
87
/// represents a completed future.
88
+ #[cfg_attr(not(bootstrap), lang = "coroutine_return")]
89
type Return;
90
91
/// Resumes the execution of this coroutine.
0 commit comments