diff --git a/src/test/ui/consts/const-eval/issue-52442.rs b/src/test/ui/consts/const-eval/issue-52442.rs deleted file mode 100644 index c7c5b1a2f626b..0000000000000 --- a/src/test/ui/consts/const-eval/issue-52442.rs +++ /dev/null @@ -1,4 +0,0 @@ -fn main() { - [(); { &loop { break } as *const _ as usize } ]; - //~^ ERROR pointers cannot be cast to integers during const eval -} diff --git a/src/test/ui/consts/const-eval/issue-52442.stderr b/src/test/ui/consts/const-eval/issue-52442.stderr deleted file mode 100644 index aa080937c6ce6..0000000000000 --- a/src/test/ui/consts/const-eval/issue-52442.stderr +++ /dev/null @@ -1,11 +0,0 @@ -error: pointers cannot be cast to integers during const eval. - --> $DIR/issue-52442.rs:2:13 - | -LL | [(); { &loop { break } as *const _ as usize } ]; - | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - | - = note: at compile-time, pointers do not have an integer value - = note: avoiding this restriction via `transmute`, `union`, or raw pointers leads to compile-time undefined behavior - -error: aborting due to previous error -