Skip to content

Commit 681af62

Browse files
committed
add comment outlining test.
1 parent e78361a commit 681af62

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/run-pass/borrowck/issue-62007-assign-field.rs

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
// run-pass
2+
3+
// Issue #62007: assigning over a field projection (`list.0 = n;` in
4+
// this case) should be able to kill all borrows of `list.0`, so that
5+
// `list.0` can be borrowed on the next iteration through the loop.
6+
27
#![allow(dead_code)]
38

49
struct List<T> {

0 commit comments

Comments
 (0)