Skip to content

Commit

Permalink
Ignore test on 32-bit architectures
Browse files Browse the repository at this point in the history
  • Loading branch information
camelid committed Jan 25, 2021
1 parent a7b7a43 commit 2be1993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/test/ui/consts/issue-79690.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// ignore-32bit
// This test gives a different error on 32-bit architectures.

union Transmute<T: Copy, U: Copy> {
t: T,
u: U,
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/issue-79690.stderr
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 2be1993

Please sign in to comment.