Skip to content

Commit

Permalink
Merge pull request rust-lang#40 from emoon/26510
Browse files Browse the repository at this point in the history
26510
  • Loading branch information
steveklabnik committed Oct 24, 2015
2 parents 2658734 + 494ae45 commit 2b230a0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/26510.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#![feature(slice_patterns)]
fn main() {
let buf = [0u8; 4];
match &buf {
&[0, 1, 0, 0] => (),
b"true" => (),
_ => ()
}
}

0 comments on commit 2b230a0

Please sign in to comment.