We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3da824 commit ac682f1Copy full SHA for ac682f1
core/src/ops/coroutine.rs
@@ -69,6 +69,7 @@ pub enum CoroutineState<Y, R> {
69
#[lang = "coroutine"]
70
#[unstable(feature = "coroutine_trait", issue = "43122")]
71
#[fundamental]
72
+#[must_use = "coroutines are lazy and do nothing unless resumed"]
73
pub trait Coroutine<R = ()> {
74
/// The type of value this coroutine yields.
75
///
0 commit comments