about summary refs log tree commit diff
path: root/tests/ui/coroutine/clone-rpit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/coroutine/clone-rpit.rs')
-rw-r--r--tests/ui/coroutine/clone-rpit.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/coroutine/clone-rpit.rs b/tests/ui/coroutine/clone-rpit.rs
index 0df9bf61601..66569b4f427 100644
--- a/tests/ui/coroutine/clone-rpit.rs
+++ b/tests/ui/coroutine/clone-rpit.rs
@@ -11,6 +11,7 @@
 // witness types, which we don't know until after borrowck. When we later check
 // the goal for correctness, we want to be able to bind the `impl Clone` opaque.
 pub fn foo<'a, 'b>() -> impl Clone {
+    #[coroutine]
     move |_: ()| {
         let () = yield ();
     }