]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/move-in-pattern-mut.stderr
Rollup merge of #102281 - RalfJung:invalid-enums, r=cjgillot
[rust.git] / src / test / ui / borrowck / move-in-pattern-mut.stderr
index 17bc5492756e6fd47d9ec486e2fc979268b81b4b..2bf34b32176c0c481d1fe2aa5d27a168ce3d3084 100644 (file)
@@ -11,7 +11,7 @@ LL |     foo(s);
 help: borrow this field in the pattern to avoid moving `s.0`
    |
 LL |     if let Some(ref mut x) = s {
-   |                 ^^^
+   |                 +++
 
 error[E0382]: use of partially moved value: `e`
   --> $DIR/move-in-pattern-mut.rs:22:9
@@ -26,7 +26,7 @@ LL |     bar(e);
 help: borrow this field in the pattern to avoid moving `e.s`
    |
 LL |     let E::V { s: ref mut x } = e;
-   |                   ^^^
+   |                   +++
 
 error: aborting due to 2 previous errors