rust/tests/ui/coroutine/self_referential_gen_block....

12 lines
363 B
Plaintext

error[E0626]: borrow may still be in use when `gen` block yields
--> $DIR/self_referential_gen_block.rs:9:21
|
LL | let z = &y;
| ^^
LL | yield 43;
| -------- possible yield occurs here
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0626`.