Skip to content
This repository was archived by the owner on May 23, 2024. It is now read-only.

Commit 7ed33ce

Browse files
committed
23311
Reference rust-lang/rust#23311
1 parent 498a336 commit 7ed33ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/23311.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#![feature(slice_patterns)]
2+
3+
fn main() {
4+
match "foo".as_bytes() {
5+
b"food" => println!("nom nom"),
6+
[b'f', ..] => println!("f!"),
7+
_ => ()
8+
}
9+
}

0 commit comments

Comments
 (0)