mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 06:28:20 +03:00
slice_patterns is stable now
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
let mut x: &[_] = &[1, 2, 3, 4];
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn main() {
|
||||
assert_eq!(match [0u8; 16*1024] {
|
||||
_ => 42_usize,
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
fn bar(a: &'static str, b: &'static str) -> [&'static str; 4] {
|
||||
[a, b, b, a]
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
#![feature(slice_patterns)]
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
||||
fn foldl<T, U, F>(values: &[T],
|
||||
|
||||
Reference in New Issue
Block a user