about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-26 09:56:39 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2018-11-29 10:16:04 +0100
commit28cc3405a8be556d16e29f4a7bb6f8ad05b12420 (patch)
tree886145451023788a8b61df9bb0262b2bbeef4927
parent9c282b44c2252c81ee638cea5b5b51763921f3e7 (diff)
downloadrust-28cc3405a8be556d16e29f4a7bb6f8ad05b12420.tar.gz
rust-28cc3405a8be556d16e29f4a7bb6f8ad05b12420.zip
r/\t/ /
-rw-r--r--src/test/ui/pattern/slice-pattern-const-2.rs14
-rw-r--r--src/test/ui/pattern/slice-pattern-const-3.rs14
-rw-r--r--src/test/ui/pattern/slice-pattern-const.rs14
3 files changed, 21 insertions, 21 deletions
diff --git a/src/test/ui/pattern/slice-pattern-const-2.rs b/src/test/ui/pattern/slice-pattern-const-2.rs
index 328ba3d1137..51c4b5bde03 100644
--- a/src/test/ui/pattern/slice-pattern-const-2.rs
+++ b/src/test/ui/pattern/slice-pattern-const-2.rs
@@ -1,11 +1,11 @@
 // compile-pass
 
 fn main() {
-	let s = &[0x00; 4][..]; //Slice of any value
-	const MAGIC_TEST: &[u32] = &[4, 5, 6, 7]; //Const slice to pattern match with
-	match s {
-		MAGIC_TEST => (),
-		[0x00, 0x00, 0x00, 0x00] => (),
-		_ => (),
-	}
+    let s = &[0x00; 4][..]; //Slice of any value
+    const MAGIC_TEST: &[u32] = &[4, 5, 6, 7]; //Const slice to pattern match with
+    match s {
+        MAGIC_TEST => (),
+        [0x00, 0x00, 0x00, 0x00] => (),
+        _ => (),
+    }
 }
diff --git a/src/test/ui/pattern/slice-pattern-const-3.rs b/src/test/ui/pattern/slice-pattern-const-3.rs
index aedd9825001..b8a45c0295f 100644
--- a/src/test/ui/pattern/slice-pattern-const-3.rs
+++ b/src/test/ui/pattern/slice-pattern-const-3.rs
@@ -1,11 +1,11 @@
 // compile-pass
 
 fn main() {
-	let s = &["0x00"; 4][..]; //Slice of any value
-	const MAGIC_TEST: &[&str] = &["4", "5", "6", "7"]; //Const slice to pattern match with
-	match s {
-		MAGIC_TEST => (),
-		["0x00", "0x00", "0x00", "0x00"] => (),
-		_ => (),
-	}
+    let s = &["0x00"; 4][..]; //Slice of any value
+    const MAGIC_TEST: &[&str] = &["4", "5", "6", "7"]; //Const slice to pattern match with
+    match s {
+        MAGIC_TEST => (),
+        ["0x00", "0x00", "0x00", "0x00"] => (),
+        _ => (),
+    }
 }
diff --git a/src/test/ui/pattern/slice-pattern-const.rs b/src/test/ui/pattern/slice-pattern-const.rs
index c3b11111f8e..2d90217a2b1 100644
--- a/src/test/ui/pattern/slice-pattern-const.rs
+++ b/src/test/ui/pattern/slice-pattern-const.rs
@@ -1,11 +1,11 @@
 // compile-pass
 
 fn main() {
-	let s = &[0x00; 4][..]; //Slice of any value
-	const MAGIC_TEST: &[u8] = b"TEST"; //Const slice to pattern match with
-	match s {
-		MAGIC_TEST => (),
-		[0x00, 0x00, 0x00, 0x00] => (),
-		_ => (),
-	}
+    let s = &[0x00; 4][..]; //Slice of any value
+    const MAGIC_TEST: &[u8] = b"TEST"; //Const slice to pattern match with
+    match s {
+        MAGIC_TEST => (),
+        [0x00, 0x00, 0x00, 0x00] => (),
+        _ => (),
+    }
 }