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-23 03:42:32 +03:00
LL | let _a = &mut true; //~ ERROR borrow may still be in use when generator yields (Ast)
| ^^^^
...
2018-02-23 03:42:32 +03: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-23 03:42:32 +03:00
LL | 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)
2018-02-23 03:42:32 +03: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-23 03:42:32 +03:00
LL | 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)
2018-02-23 03:42:32 +03:00
LL | yield ();
| -------- possible yield occurs here
error: aborting due to 3 previous errors
2018-02-19 21:40:25 +01:00
If you want more information on this error, try using "rustc --explain E0626"