Skip to content

Commit 28cc340

Browse files
committed
r/\t/ /
1 parent 9c282b4 commit 28cc340

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// compile-pass
22

33
fn main() {
4-
let s = &[0x00; 4][..]; //Slice of any value
5-
const MAGIC_TEST: &[u32] = &[4, 5, 6, 7]; //Const slice to pattern match with
6-
match s {
7-
MAGIC_TEST => (),
8-
[0x00, 0x00, 0x00, 0x00] => (),
9-
_ => (),
10-
}
4+
let s = &[0x00; 4][..]; //Slice of any value
5+
const MAGIC_TEST: &[u32] = &[4, 5, 6, 7]; //Const slice to pattern match with
6+
match s {
7+
MAGIC_TEST => (),
8+
[0x00, 0x00, 0x00, 0x00] => (),
9+
_ => (),
10+
}
1111
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// compile-pass
22

33
fn main() {
4-
let s = &["0x00"; 4][..]; //Slice of any value
5-
const MAGIC_TEST: &[&str] = &["4", "5", "6", "7"]; //Const slice to pattern match with
6-
match s {
7-
MAGIC_TEST => (),
8-
["0x00", "0x00", "0x00", "0x00"] => (),
9-
_ => (),
10-
}
4+
let s = &["0x00"; 4][..]; //Slice of any value
5+
const MAGIC_TEST: &[&str] = &["4", "5", "6", "7"]; //Const slice to pattern match with
6+
match s {
7+
MAGIC_TEST => (),
8+
["0x00", "0x00", "0x00", "0x00"] => (),
9+
_ => (),
10+
}
1111
}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// compile-pass
22

33
fn main() {
4-
let s = &[0x00; 4][..]; //Slice of any value
5-
const MAGIC_TEST: &[u8] = b"TEST"; //Const slice to pattern match with
6-
match s {
7-
MAGIC_TEST => (),
8-
[0x00, 0x00, 0x00, 0x00] => (),
9-
_ => (),
10-
}
4+
let s = &[0x00; 4][..]; //Slice of any value
5+
const MAGIC_TEST: &[u8] = b"TEST"; //Const slice to pattern match with
6+
match s {
7+
MAGIC_TEST => (),
8+
[0x00, 0x00, 0x00, 0x00] => (),
9+
_ => (),
10+
}
1111
}

0 commit comments

Comments
 (0)