Skip to content
Permalink
Browse files

add comment outlining test.

  • Loading branch information...
pnkfelix committed Jun 21, 2019
1 parent e78361a commit 681af62ba42d020712234c3c5d6198f4333dd2fd
Showing with 5 additions and 0 deletions.
  1. +5 −0 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> {

0 comments on commit 681af62

Please sign in to comment.
You can’t perform that action at this time.