]> git.proxmox.com Git - rustc.git/blobdiff - src/test/ui/borrowck/borrowck-anon-fields-variant.rs
Update unsuspicious file list
[rustc.git] / src / test / ui / borrowck / borrowck-anon-fields-variant.rs
index cecc278e1931cb8684a5c1a200af7cd127689c71..6e63de9136cb19a2f5c0aa23c983e33ffd39769b 100644 (file)
@@ -14,8 +14,8 @@ fn distinct_variant() {
     // also used for the discriminant of `Foo`, which it would be if `a` was a
     // reference.
     let b = match y {
-      Foo::Y(_, ref mut b) => b,
       //~^ ERROR cannot use `y`
+      Foo::Y(_, ref mut b) => b,
       Foo::X => panic!()
     };
 
@@ -32,8 +32,9 @@ fn same_variant() {
     };
 
     let b = match y {
-      Foo::Y(ref mut b, _) => b, //~ ERROR cannot use `y`
-      //~| ERROR cannot borrow `y.0` as mutable
+      //~^ ERROR cannot use `y`
+      Foo::Y(ref mut b, _) => b,
+      //~^ ERROR cannot borrow `y.0` as mutable
       Foo::X => panic!()
     };