File tree Expand file tree Collapse file tree 2 files changed +7
-11
lines changed
branches/snap-stage3/src/test/run-pass Expand file tree Collapse file tree 2 files changed +7
-11
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: 5f13e9ccc2e3328d4cd8ca49f84e6840dd998346
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 527f7716b76cf77f57915c663d88f72037e11af4
4
+ refs/heads/snap-stage3: 3931ce448e0329672583d3210df714cca5176f02
5
5
refs/heads/try: 8eb2bab100b42f0ba751552d8eff00eb2134c55a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
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 )
17
13
}
18
14
19
- type t_rec = {
15
+ struct t_rec {
20
16
c8 : u8 ,
21
17
t : a_tag
22
- } ;
18
+ }
23
19
24
20
pub fn main ( ) {
25
- let x = { c8: 22u8 , t: a_tag ( 44u64 ) } ;
21
+ let x = t_rec { c8 : 22u8 , t : a_tag ( 44u64 ) } ;
26
22
let y = fmt ! ( "%?" , x) ;
27
23
debug ! ( "y = %s" , y) ;
28
- assert ! ( y == "( 22, a_tag(44)) ") ;
24
+ assert_eq ! ( y, ~" { c8 : 22 , t : a_tag( 44 ) } " ) ;
29
25
}
You can’t perform that action at this time.
0 commit comments