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

error: aborting due to 1 previous error

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