rust/src/test/ui/generator/generator-with-nll.stderr

31 lines
1.2 KiB
Plaintext
Raw Normal View History

error[E0626]: borrow may still be in use when generator yields (Ast)
--> $DIR/generator-with-nll.rs:19:23
|
2018-02-22 18:42:32 -06:00
LL | let _a = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
| ^^^^
...
2018-02-22 18:42:32 -06:00
LL | yield ();
| -------- possible yield occurs here
error[E0626]: borrow may still be in use when generator yields (Ast)
--> $DIR/generator-with-nll.rs:20:22
|
2018-02-22 18:42:32 -06:00
LL | let b = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
| ^^^^
2018-02-24 17:01:39 -06:00
LL | //~^ borrow may still be in use when generator yields (Mir)
2018-02-22 18:42:32 -06:00
LL | yield ();
| -------- possible yield occurs here
error[E0626]: borrow may still be in use when generator yields (Mir)
--> $DIR/generator-with-nll.rs:20:17
|
2018-02-22 18:42:32 -06:00
LL | let b = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
| ^^^^^^^^^
2018-02-24 17:01:39 -06:00
LL | //~^ borrow may still be in use when generator yields (Mir)
2018-02-22 18:42:32 -06:00
LL | yield ();
| -------- possible yield occurs here
error: aborting due to 3 previous errors
2018-02-19 14:40:25 -06:00
If you want more information on this error, try using "rustc --explain E0626"