fixup! 2229: Capture box completely in move closures
fixup! 2229: Capture box completely in move closures
This commit is contained in:
parent
de2052af9c
commit
d37a07ffbe
3 changed files with 36 additions and 30 deletions
|
|
@ -141,7 +141,7 @@ fn truncate_box_derefs() {
|
|||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
println!("{}", b.0);
|
||||
//~^ NOTE: Capturing b[] -> ByValue
|
||||
//~^ NOTE: Capturing b[Deref,(0, 0)] -> ByValue
|
||||
//~| NOTE: Min Capture b[] -> ByValue
|
||||
};
|
||||
|
||||
|
|
@ -158,7 +158,7 @@ fn truncate_box_derefs() {
|
|||
//~^ ERROR: First Pass analysis includes:
|
||||
//~| ERROR: Min Capture analysis includes:
|
||||
println!("{}", t.1.0);
|
||||
//~^ NOTE: Capturing t[(1, 0)] -> ByValue
|
||||
//~^ NOTE: Capturing t[(1, 0),Deref,(0, 0)] -> ByValue
|
||||
//~| NOTE: Min Capture t[(1, 0)] -> ByValue
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ LL | |
|
|||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
note: Capturing b[] -> ByValue
|
||||
note: Capturing b[Deref,(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:143:24
|
||||
|
|
||||
LL | println!("{}", b.0);
|
||||
|
|
@ -353,7 +353,7 @@ LL | |
|
|||
LL | | };
|
||||
| |_____^
|
||||
|
|
||||
note: Capturing t[(1, 0)] -> ByValue
|
||||
note: Capturing t[(1, 0),Deref,(0, 0)] -> ByValue
|
||||
--> $DIR/move_closure.rs:160:24
|
||||
|
|
||||
LL | println!("{}", t.1.0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue