]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/E0009.rs
Auto merge of #35856 - phimuemue:master, r=brson
[rust.git] / src / test / compile-fail / E0009.rs
index 51f71ea10c9e4e41e290fe87b3db17942951f2fe..767fc0cc5dc07eb29abc9ba6ce6a83f8231df6a8 100644 (file)
@@ -12,7 +12,10 @@ fn main() {
     struct X { x: (), }
     let x = Some((X { x: () }, X { x: () }));
     match x {
-        Some((y, ref z)) => {}, //~ ERROR E0009
+        Some((y, ref z)) => {},
+        //~^ ERROR E0009
+        //~| NOTE by-move pattern here
+        //~| NOTE both by-ref and by-move used
         None => panic!()
     }
 }