2018-01-28 19:49:48 +01:00
|
|
|
error[E0626]: borrow may still be in use when generator yields
|
|
|
|
--> $DIR/pattern-borrow.rs:19:24
|
|
|
|
|
|
2018-02-23 03:42:32 +03:00
|
|
|
LL | if let Test::A(ref _a) = test { //~ ERROR borrow may still be in use when generator yields
|
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-02-19 21:40:25 +01:00
|
|
|
If you want more information on this error, try using "rustc --explain E0626"
|