2018-01-11 12:50:40 -06:00
|
|
|
error[E0626]: borrow may still be in use when generator yields (Ast)
|
|
|
|
--> $DIR/generator-with-nll.rs:19:23
|
|
|
|
|
|
|
|
|
19 | let _a = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
|
|
|
|
| ^^^^
|
|
|
|
...
|
|
|
|
22 | yield ();
|
|
|
|
| -------- possible yield occurs here
|
|
|
|
|
|
|
|
error[E0626]: borrow may still be in use when generator yields (Ast)
|
|
|
|
--> $DIR/generator-with-nll.rs:20:22
|
|
|
|
|
|
|
|
|
20 | let b = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
|
|
|
|
| ^^^^
|
|
|
|
21 | //~^ borrow may still be in use when generator yields (Mir)
|
|
|
|
22 | yield ();
|
|
|
|
| -------- possible yield occurs here
|
|
|
|
|
2018-01-29 01:29:58 -06:00
|
|
|
error[E0626]: borrow may still be in use when generator yields (Mir)
|
|
|
|
--> $DIR/generator-with-nll.rs:20:17
|
|
|
|
|
|
|
|
|
20 | let b = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
|
|
|
|
| ^^^^^^^^^
|
|
|
|
21 | //~^ borrow may still be in use when generator yields (Mir)
|
|
|
|
22 | yield ();
|
|
|
|
| -------- possible yield occurs here
|
|
|
|
|
2018-01-11 12:50:40 -06:00
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|