add comment outlining test.

This commit is contained in:
Felix S. Klock II 2019-06-21 12:38:12 +02:00
parent e78361a16c
commit 681af62ba4

View File

@ -1,4 +1,9 @@
// run-pass // 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)] #![allow(dead_code)]
struct List<T> { struct List<T> {