diff options
Diffstat (limited to 'src/test/ui/reachable/expr_unary.rs')
-rw-r--r-- | src/test/ui/reachable/expr_unary.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/test/ui/reachable/expr_unary.rs b/src/test/ui/reachable/expr_unary.rs deleted file mode 100644 index 190c7447d..000000000 --- a/src/test/ui/reachable/expr_unary.rs +++ /dev/null @@ -1,12 +0,0 @@ -#![feature(never_type)] -#![allow(unused_variables)] -#![allow(unused_assignments)] -#![allow(dead_code)] -#![deny(unreachable_code)] - -fn foo() { - let x: ! = * { return; }; //~ ERROR unreachable - //~| ERROR type `!` cannot be dereferenced -} - -fn main() { } |