summaryrefslogtreecommitdiffstats
path: root/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs')
-rw-r--r--src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs b/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs
deleted file mode 100644
index bc2ea3f18..000000000
--- a/src/test/ui/consts/const-eval/index-out-of-bounds-never-type.rs
+++ /dev/null
@@ -1,21 +0,0 @@
-// build-fail
-
-// Regression test for #66975
-#![warn(unconditional_panic)]
-#![feature(never_type)]
-
-struct PrintName<T>(T);
-
-impl<T> PrintName<T> {
- const VOID: ! = { let x = 0 * std::mem::size_of::<T>(); [][x] };
- //~^ ERROR evaluation of `PrintName::<()>::VOID` failed
-
-}
-
-fn f<T>() {
- let _ = PrintName::<T>::VOID;
-}
-
-pub fn main() {
- f::<()>();
-}