Use a free error code
This commit is contained in:
parent
9285a61413
commit
cc4ff8f4d1
8 changed files with 11 additions and 11 deletions
|
|
@ -1,4 +1,4 @@
|
|||
error[E0624]: borrow may still be in use when generator yields
|
||||
error[E0626]: borrow may still be in use when generator yields
|
||||
--> $DIR/yield-in-args-rev.rs:20:21
|
||||
|
|
||||
20 | foo(yield, &b); //~ ERROR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0624]: borrow may still be in use when generator yields
|
||||
error[E0626]: borrow may still be in use when generator yields
|
||||
--> $DIR/yield-in-args.rs:18:14
|
||||
|
|
||||
18 | foo(&b, yield); //~ ERROR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0624]: borrow may still be in use when generator yields
|
||||
error[E0626]: borrow may still be in use when generator yields
|
||||
--> $DIR/yield-while-iterating.rs:22:19
|
||||
|
|
||||
22 | for p in &x { //~ ERROR
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
error[E0624]: borrow may still be in use when generator yields
|
||||
error[E0626]: borrow may still be in use when generator yields
|
||||
--> $DIR/yield-while-local-borrowed.rs:22:18
|
||||
|
|
||||
22 | let a = &3; //~ ERROR
|
||||
|
|
@ -6,7 +6,7 @@ error[E0624]: borrow may still be in use when generator yields
|
|||
23 | yield();
|
||||
| ------- possible yield occurs here
|
||||
|
||||
error[E0624]: borrow may still be in use when generator yields
|
||||
error[E0626]: borrow may still be in use when generator yields
|
||||
--> $DIR/yield-while-local-borrowed.rs:48:22
|
||||
|
|
||||
48 | let b = &a; //~ ERROR
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue