slice_patterns is stable now
This commit is contained in:
parent
6a0f14bef7
commit
b2303a7da1
5 changed files with 1 additions and 9 deletions
|
|
@ -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],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue