We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 527f771 commit 3931ce4Copy full SHA for 3931ce4
src/test/run-pass/tag-align-shape.rs
@@ -8,22 +8,18 @@
8
// option. This file may not be copied, modified, or distributed
9
// except according to those terms.
10
11
-// xfail-test
12
-//
13
-// See issue #1535
14
-
15
-tag a_tag {
16
- a_tag(u64);
+enum a_tag {
+ a_tag(u64)
17
}
18
19
-type t_rec = {
+struct t_rec {
20
c8: u8,
21
t: a_tag
22
-};
+}
23
24
pub fn main() {
25
- let x = {c8: 22u8, t: a_tag(44u64)};
+ let x = t_rec {c8: 22u8, t: a_tag(44u64)};
26
let y = fmt!("%?", x);
27
debug!("y = %s", y);
28
- assert!(y == "(22, a_tag(44))");
+ assert_eq!(y, ~"{c8: 22, t: a_tag(44)}");
29
0 commit comments