summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const_unsafe_unreachable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const_unsafe_unreachable.rs')
-rw-r--r--src/test/ui/consts/const_unsafe_unreachable.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/test/ui/consts/const_unsafe_unreachable.rs b/src/test/ui/consts/const_unsafe_unreachable.rs
deleted file mode 100644
index 1c3baec5d..000000000
--- a/src/test/ui/consts/const_unsafe_unreachable.rs
+++ /dev/null
@@ -1,14 +0,0 @@
-// run-pass
-
-const unsafe fn foo(x: bool) -> bool {
- match x {
- true => true,
- false => std::hint::unreachable_unchecked(),
- }
-}
-
-const BAR: bool = unsafe { foo(true) };
-
-fn main() {
- assert_eq!(BAR, true);
-}