about summary refs log tree commit diff
path: root/src/test/ui/reachable/expr_array.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/reachable/expr_array.rs')
-rw-r--r--src/test/ui/reachable/expr_array.rs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/test/ui/reachable/expr_array.rs b/src/test/ui/reachable/expr_array.rs
deleted file mode 100644
index e6bdb970568..00000000000
--- a/src/test/ui/reachable/expr_array.rs
+++ /dev/null
@@ -1,17 +0,0 @@
-#![allow(unused_variables)]
-#![allow(unused_assignments)]
-#![allow(dead_code)]
-#![deny(unreachable_code)]
-#![feature(type_ascription)]
-
-fn a() {
-    // the `22` is unreachable:
-    let x: [usize; 2] = [return, 22]; //~ ERROR unreachable
-}
-
-fn b() {
-    // the array is unreachable:
-    let x: [usize; 2] = [22, return]; //~ ERROR unreachable
-}
-
-fn main() { }