remove duplicate test
This commit is contained in:
parent
fb010c9004
commit
f5094aa5d6
@ -1,4 +0,0 @@
|
|||||||
fn main() {
|
|
||||||
[(); { &loop { break } as *const _ as usize } ];
|
|
||||||
//~^ ERROR pointers cannot be cast to integers during const eval
|
|
||||||
}
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user