about summary refs log tree commit diff
path: root/tests/ui/coroutine/pattern-borrow.stderr
blob: a3954b0b8ad68a1820c5916dc5a273f2b1532724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
error[E0626]: borrow may still be in use when coroutine yields
  --> $DIR/pattern-borrow.rs:9:24
   |
LL |     #[coroutine] move || {
   |                  ------- within this coroutine
LL |         if let Test::A(ref _a) = test {
   |                        ^^^^^^
LL |             yield ();
   |             -------- possible yield occurs here
   |
help: add `static` to mark this coroutine as unmovable
   |
LL |     #[coroutine] static move || {
   |                  ++++++

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0626`.