We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7b7a43 commit 2be1993Copy full SHA for 2be1993
src/test/ui/consts/issue-79690.rs
@@ -1,3 +1,6 @@
1
+// ignore-32bit
2
+// This test gives a different error on 32-bit architectures.
3
+
4
union Transmute<T: Copy, U: Copy> {
5
t: T,
6
u: U,
src/test/ui/consts/issue-79690.stderr
@@ -1,5 +1,5 @@
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 };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ type validation failed: encountered read of part of a pointer at .1.<deref>.size.foo
0 commit comments