We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a24e0f2 commit b1e8c72Copy full SHA for b1e8c72
src/test/run-pass/union/union-basic.rs
@@ -10,10 +10,6 @@
10
11
// aux-build:union.rs
12
13
-// FIXME: This test case makes little-endian assumptions.
14
-// ignore-s390x
15
-// ignore-sparc
16
-
17
extern crate union;
18
use std::mem::{size_of, align_of, zeroed};
19
@@ -39,7 +35,7 @@ fn local() {
39
35
assert_eq!(w.b, 0);
40
36
w.a = 1;
41
37
assert_eq!(w.a, 1);
42
- assert_eq!(w.b, 1);
38
+ assert_eq!(w.b.to_le(), 1);
43
}
44
45
@@ -60,7 +56,7 @@ fn xcrate() {
60
56
61
57
62
58
63
59
64
65
66
0 commit comments