about summary refs log tree commit diff
path: root/tests/ui/coroutine/clone-impl.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2025-07-18 18:17:15 +0000
committerMichael Goulet <michael@errs.io>2025-07-31 17:31:51 +0000
commitd525e79157e32abc510714dd32628c9c155f2997 (patch)
treeea87e96a67f6c624ec0979aac0d6a99030d8a89c /tests/ui/coroutine/clone-impl.rs
parent3fb1b53a9dbfcdf37a4b67d35cde373316829930 (diff)
downloadrust-d525e79157e32abc510714dd32628c9c155f2997.tar.gz
rust-d525e79157e32abc510714dd32628c9c155f2997.zip
Stall coroutines based off of ty::Coroutine, not ty::CoroutineWitness
Diffstat (limited to 'tests/ui/coroutine/clone-impl.rs')
-rw-r--r--tests/ui/coroutine/clone-impl.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/coroutine/clone-impl.rs b/tests/ui/coroutine/clone-impl.rs
index e528f031d52..9e04e256fc1 100644
--- a/tests/ui/coroutine/clone-impl.rs
+++ b/tests/ui/coroutine/clone-impl.rs
@@ -42,6 +42,7 @@ fn test3_upvars() {
     let clonable_0: Vec<u32> = Vec::new();
     let gen_clone_0 = #[coroutine]
     move || {
+        yield;
         drop(clonable_0);
     };
     check_copy(&gen_clone_0);