]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/closures/2229_closure_analysis/capture-disjoint-field-struct.rs
Address review comments 2
[rust.git] / src / test / ui / closures / 2229_closure_analysis / capture-disjoint-field-struct.rs
index 3f2e16725dc38b1abbe68e69dae5359b4f048fde..b50c2d66d94b470f11ef60add741d93afa5e66ce 100644 (file)
@@ -17,7 +17,7 @@ fn main() {
     || {
         println!("{}", p.x);
         //~^ ERROR: Capturing p[(0, 0)] -> ImmBorrow
-        //~^^ ERROR: Min Capture p[(0, 0)] -> ImmBorrow
+        //~| ERROR: Min Capture p[(0, 0)] -> ImmBorrow
     };
 
     // `c` should only capture `p.x`, therefore mutating `p.y` is allowed.