Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment outlining test.
  • Loading branch information
pnkfelix committed Jun 21, 2019
commit 681af62ba42d020712234c3c5d6198f4333dd2fd
5 changes: 5 additions & 0 deletions src/test/run-pass/borrowck/issue-62007-assign-field.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// run-pass

// Issue #62007: assigning over a field projection (`list.0 = n;` in
// this case) should be able to kill all borrows of `list.0`, so that
// `list.0` can be borrowed on the next iteration through the loop.

#![allow(dead_code)]

struct List<T> {
Expand Down