Ignore test on 32-bit architectures

This commit is contained in:
Camelid 2021-01-24 19:38:10 -08:00
parent a7b7a435ea
commit 2be1993233
2 changed files with 4 additions and 1 deletions

View file

@ -1,3 +1,6 @@
// ignore-32bit
// This test gives a different error on 32-bit architectures.
union Transmute<T: Copy, U: Copy> { union Transmute<T: Copy, U: Copy> {
t: T, t: T,
u: U, u: U,

View file

@ -1,5 +1,5 @@
error[E0080]: it is undefined behavior to use this value error[E0080]: it is undefined behavior to use this value
--> $DIR/issue-79690.rs:26:1 --> $DIR/issue-79690.rs:29:1
| |
LL | const G: Fat = unsafe { Transmute { t: FOO }.u }; LL | const G: Fat = unsafe { Transmute { t: FOO }.u };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered read of part of a pointer at .1.<deref>.size.foo | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered read of part of a pointer at .1.<deref>.size.foo