We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1b9ed7 commit 494ae45Copy full SHA for 494ae45
src/26510.rs
@@ -0,0 +1,9 @@
1
+#![feature(slice_patterns)]
2
+fn main() {
3
+ let buf = [0u8; 4];
4
+ match &buf {
5
+ &[0, 1, 0, 0] => (),
6
+ b"true" => (),
7
+ _ => ()
8
+ }
9
+}
0 commit comments