summaryrefslogtreecommitdiffstats
path: root/tests/ui/nll/issue-62007-assign-const-index.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/nll/issue-62007-assign-const-index.stderr')
-rw-r--r--tests/ui/nll/issue-62007-assign-const-index.stderr2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ui/nll/issue-62007-assign-const-index.stderr b/tests/ui/nll/issue-62007-assign-const-index.stderr
index 12e28aa3f..0db9fe62c 100644
--- a/tests/ui/nll/issue-62007-assign-const-index.stderr
+++ b/tests/ui/nll/issue-62007-assign-const-index.stderr
@@ -17,7 +17,7 @@ LL | fn to_refs<T>(mut list: [&mut List<T>; 2]) -> Vec<&mut T> {
| - let's call the lifetime of this reference `'1`
...
LL | if let Some(n) = list[0].next.as_mut() {
- | ^^^^^^^^^^^^^^^^^^^^^
+ | ^^^^^^^^^^^^---------
| |
| `list[_].next` was mutably borrowed here in the previous iteration of the loop
| argument requires that `list[_].next` is borrowed for `'1`