slice_patterns is stable now

This commit is contained in:
Ralf Jung 2020-01-19 10:03:18 -06:00
parent 6a0f14bef7
commit b2303a7da1
5 changed files with 1 additions and 9 deletions

View file

@ -1 +1 @@
6d0bb91bcba33a70fae4b0c663fb4403ed78f071
6250d56355d72264ece721e8d0dc95b16a6824b1

View file

@ -1,5 +1,3 @@
#![feature(slice_patterns)]
fn main() {
let mut x: &[_] = &[1, 2, 3, 4];

View file

@ -1,5 +1,3 @@
#![feature(slice_patterns)]
fn main() {
assert_eq!(match [0u8; 16*1024] {
_ => 42_usize,

View file

@ -1,5 +1,3 @@
#![feature(slice_patterns)]
fn bar(a: &'static str, b: &'static str) -> [&'static str; 4] {
[a, b, b, a]
}

View file

@ -1,5 +1,3 @@
#![feature(slice_patterns)]
use std::fmt::Debug;
fn foldl<T, U, F>(values: &[T],