]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-vec-pattern-nesting.stderr
Auto merge of #102283 - GuillaumeGomez:option-code-example-unwrap-or-default, r=thomcc
[rust.git] / src / test / ui / borrowck / borrowck-vec-pattern-nesting.stderr
index ddd89afe5bf917c35e5f84c3e6f2782185ee4e33..c3bcb7de65daa8fd07550695aaeaafae769f60a9 100644 (file)
@@ -14,7 +14,7 @@ error[E0506]: cannot assign to `vec[_]` because it is borrowed
   --> $DIR/borrowck-vec-pattern-nesting.rs:23:13
    |
 LL |         &mut [ref _b @ ..] => {
-   |               ----------- borrow of `vec[_]` occurs here
+   |               ------ borrow of `vec[_]` occurs here
 LL |
 LL |             vec[0] = Box::new(4);
    |             ^^^^^^ assignment to borrowed `vec[_]` occurs here