Skip to content

Commit

Permalink
add comment outlining test.
Browse files Browse the repository at this point in the history
  • Loading branch information
pnkfelix committed Jun 21, 2019
1 parent e78361a commit 681af62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/run-pass/borrowck/issue-62007-assign-field.rs
@@ -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

0 comments on commit 681af62

Please sign in to comment.