]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-describe-lvalue.rs
Sync portable-simd to rust-lang/portable-simd@72df4c45056a8bc0d1b3f06fdc828722177f0763
[rust.git] / src / test / ui / borrowck / borrowck-describe-lvalue.rs
index 0e6c0635adb45dce953311af9de061e78610555b..cdcff69d6e529293998ce23f69128630dd1aafec 100644 (file)
@@ -164,9 +164,9 @@ enum E<X> { A(X), B { x: X } }
         let mut e = E::A(3);
         let x = &mut e;
         match e {
+            //~^ ERROR cannot use `e` because it was mutably borrowed
             E::A(ref ax) =>
                 //~^ ERROR cannot borrow `e.0` as immutable because it is also borrowed as mutable
-                //~| ERROR cannot use `e` because it was mutably borrowed
                 println!("e.ax: {:?}", ax),
             E::B { x: ref bx } =>
                 //~^ ERROR cannot borrow `e.x` as immutable because it is also borrowed as mutable