mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-01 14:10:03 +03:00
slice_patterns is stable now
This commit is contained in:
+1
-1
@@ -1 +1 @@
|
||||
6d0bb91bcba33a70fae4b0c663fb4403ed78f071
|
||||
6250d56355d72264ece721e8d0dc95b16a6824b1
|
||||
|
||||
@@ -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