Skip to content

Commit b4f9c16

Browse files
bryangarzaRalfJung
andauthored
Update tests/pass/move-data-across-await-point.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 95b87e3 commit b4f9c16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/pass/move-data-across-await-point.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ async fn helper_async(mut data: Vec<u8>, raw_pointer: *mut Vec<u8>) {
2525
// here should be equal.
2626
assert_ne!(raw_pointer, raw_pointer2);
2727
unsafe {
28+
// This writes into the `x` in `data_moved_async`, re-initializing it.
2829
std::ptr::write(raw_pointer, vec![3]);
2930
}
3031
}

0 commit comments

Comments
 (0)