We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e78361a commit 681af62Copy full SHA for 681af62
src/test/run-pass/borrowck/issue-62007-assign-field.rs
@@ -1,4 +1,9 @@
1
// 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
7
#![allow(dead_code)]
8
9
struct List<T> {
0 commit comments