remove duplicate test

This commit is contained in:
Ralf Jung 2021-07-10 13:48:44 +02:00
parent fb010c9004
commit f5094aa5d6
2 changed files with 0 additions and 15 deletions

View File

@ -1,4 +0,0 @@
fn main() {
[(); { &loop { break } as *const _ as usize } ];
//~^ ERROR pointers cannot be cast to integers during const eval
}

View File

@ -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