]> git.proxmox.com Git - rustc.git/blobdiff - src/test/compile-fail/pat-slice-old-style.rs
New upstream version 1.23.0+dfsg1
[rustc.git] / src / test / compile-fail / pat-slice-old-style.rs
index 54028ffa63ffc0f87bb2f27cd8bc1b887e713d93..d49ce56ccf6e7da054241efd45d181d93f3082ee 100644 (file)
@@ -17,8 +17,9 @@ fn slice_pat(x: &[u8]) {
     // OLD!
     match x {
         [a, b..] => {},
-        //~^ ERROR expected an array or slice, found `&[u8]`
-        //~| HELP the semantics of slice patterns changed recently; see issue #23121
+        //~^ ERROR non-reference pattern used to match a reference
+        //~| HELP add #![feature(match_default_bindings)] to the crate attributes to enable
+        //~| HELP consider using
         _ => panic!(),
     }
 }