Skip to content

Commit ac682f1

Browse files
committed
Add must_use attribute to Coroutine trait
1 parent e3da824 commit ac682f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/ops/coroutine.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ pub enum CoroutineState<Y, R> {
6969
#[lang = "coroutine"]
7070
#[unstable(feature = "coroutine_trait", issue = "43122")]
7171
#[fundamental]
72+
#[must_use = "coroutines are lazy and do nothing unless resumed"]
7273
pub trait Coroutine<R = ()> {
7374
/// The type of value this coroutine yields.
7475
///

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy