2018-01-28 19:49:48 +01:00
|
|
|
error[E0626]: borrow may still be in use when generator yields
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/pattern-borrow.rs:9:24
|
2018-01-28 19:49:48 +01:00
|
|
|
|
|
2019-03-09 15:03:44 +03:00
|
|
|
LL | if let Test::A(ref _a) = test {
|
2018-01-28 19:49:48 +01:00
|
|
|
| ^^^^^^
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | yield ();
|
2018-01-28 19:49:48 +01:00
|
|
|
| -------- possible yield occurs here
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 15:59:40 +01:00
|
|
|
For more information about this error, try `rustc --explain E0626`.
|