rust/src/test/ui/generator/yield-while-local-borrowed.stderr

40 lines
1.1 KiB
Plaintext
Raw Normal View History

2018-01-11 12:49:26 -06:00
error[E0626]: borrow may still be in use when generator yields (Ast)
2018-10-04 13:49:38 -05:00
--> $DIR/yield-while-local-borrowed.rs:15:22
2018-01-11 12:49:26 -06:00
|
2018-02-22 18:42:32 -06:00
LL | let a = &mut 3;
2018-01-11 12:49:26 -06:00
| ^
...
2018-02-22 18:42:32 -06:00
LL | yield();
2018-01-11 12:49:26 -06:00
| ------- possible yield occurs here
error[E0626]: borrow may still be in use when generator yields (Ast)
2018-10-04 13:49:38 -05:00
--> $DIR/yield-while-local-borrowed.rs:43:22
2018-01-11 12:49:26 -06:00
|
2018-02-22 18:42:32 -06:00
LL | let b = &a;
| ^
2018-01-11 12:49:26 -06:00
...
2018-02-22 18:42:32 -06:00
LL | yield();
2018-01-11 12:49:26 -06:00
| ------- possible yield occurs here
error[E0626]: borrow may still be in use when generator yields (Mir)
2018-10-04 13:49:38 -05:00
--> $DIR/yield-while-local-borrowed.rs:15:17
|
2018-02-22 18:42:32 -06:00
LL | let a = &mut 3;
| ^^^^^^
...
2018-02-22 18:42:32 -06:00
LL | yield();
| ------- possible yield occurs here
2018-01-11 12:49:26 -06:00
error[E0626]: borrow may still be in use when generator yields (Mir)
2018-10-04 13:49:38 -05:00
--> $DIR/yield-while-local-borrowed.rs:43:21
2018-01-11 12:49:26 -06:00
|
2018-02-22 18:42:32 -06:00
LL | let b = &a;
2018-01-11 12:49:26 -06:00
| ^^
...
2018-02-22 18:42:32 -06:00
LL | yield();
| ------- possible yield occurs here
2018-01-11 12:49:26 -06:00
error: aborting due to 4 previous errors
2018-03-03 08:59:40 -06:00
For more information about this error, try `rustc --explain E0626`.