about summary refs log tree commit diff
path: root/tests/ui/coroutine/pattern-borrow.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/coroutine/pattern-borrow.rs')
-rw-r--r--tests/ui/coroutine/pattern-borrow.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/coroutine/pattern-borrow.rs b/tests/ui/coroutine/pattern-borrow.rs
index 76084433d47..46547504abc 100644
--- a/tests/ui/coroutine/pattern-borrow.rs
+++ b/tests/ui/coroutine/pattern-borrow.rs
@@ -5,7 +5,7 @@ enum Test { A(i32), B, }
 fn main() { }
 
 fn fun(test: Test) {
-    move || {
+    #[coroutine] move || {
         if let Test::A(ref _a) = test { //~ ERROR borrow may still be in use when coroutine yields
             yield ();
             _a.use_ref();