]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/borrowck/borrowck-match-already-borrowed.rs
Rollup merge of #99460 - JanBeh:PR_asref_asmut_docs, r=joshtriplett
[rust.git] / src / test / ui / borrowck / borrowck-match-already-borrowed.rs
index c766e6c108086dd8b11b09aeeb3828b4431df105..a925cbbf57b6d6ef0e90c11c19721ec127a15e46 100644 (file)
@@ -6,8 +6,8 @@ enum Foo {
 fn match_enum() {
     let mut foo = Foo::B;
     let p = &mut foo;
-    let _ = match foo {
-        Foo::B => 1, //~ ERROR [E0503]
+    let _ = match foo { //~ ERROR [E0503]
+        Foo::B => 1,
         _ => 2,
         Foo::A(x) => x //~ ERROR [E0503]
     };