Skip to content

Commit 3931ce4

Browse files
committed
fixed the test case, hope it's still testing something
1 parent 527f771 commit 3931ce4

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/test/run-pass/tag-align-shape.rs

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// xfail-test
12-
//
13-
// See issue #1535
14-
15-
tag a_tag {
16-
a_tag(u64);
11+
enum a_tag {
12+
a_tag(u64)
1713
}
1814

19-
type t_rec = {
15+
struct t_rec {
2016
c8: u8,
2117
t: a_tag
22-
};
18+
}
2319

2420
pub fn main() {
25-
let x = {c8: 22u8, t: a_tag(44u64)};
21+
let x = t_rec {c8: 22u8, t: a_tag(44u64)};
2622
let y = fmt!("%?", x);
2723
debug!("y = %s", y);
28-
assert!(y == "(22, a_tag(44))");
24+
assert_eq!(y, ~"{c8: 22, t: a_tag(44)}");
2925
}

0 commit comments

Comments
 (0)