]> git.lizzy.rs Git - rust.git/blobdiff - src/test/ui/rfc-2005-default-binding-mode/slice.rs
slice_patterns: remove gates in tests
[rust.git] / src / test / ui / rfc-2005-default-binding-mode / slice.rs
index fd85bf7f16007c9430b52c5b8bcf210756edf41a..363a0e3e649d9a5fe66432509252cd7ad9ca9291 100644 (file)
@@ -1,9 +1,7 @@
-#![feature(slice_patterns)]
-
 pub fn main() {
     let sl: &[u8] = b"foo";
 
     match sl { //~ ERROR non-exhaustive patterns
-        [first, remainder..] => {},
+        [first, remainder @ ..] => {},
     };
 }