File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6d4907a7426de78b929b1db36e5d027e035a4d25
2
+ refs/heads/master: 0743cec0239fb12bc95f2c121253e6d798cbe2c7
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
5
refs/heads/try: 3d5418789064fdb463e872a4e651af1c628a3650
Original file line number Diff line number Diff line change @@ -569,6 +569,9 @@ pub fn write_repr<T>(writer: @Writer, object: &T) {
569
569
}
570
570
}
571
571
572
+ #[ test]
573
+ struct P { a : int , b : float }
574
+
572
575
#[ test]
573
576
fn test_repr ( ) {
574
577
@@ -609,11 +612,11 @@ fn test_repr() {
609
612
"~[\" hi\" , \" there\" ]" ) ;
610
613
exact_test ( & ( & [ "hi" , "there" ] ) ,
611
614
"&[\" hi\" , \" there\" ]" ) ;
612
- exact_test ( & ( { a: 10 , b: 1.234 } ) ,
615
+ exact_test ( & ( P { a : 10 , b : 1.234 } ) ,
613
616
"{a: 10, b: 1.2340}" ) ;
614
- exact_test ( & ( @{ a: 10 , b: 1.234 } ) ,
617
+ exact_test ( & ( @P { a : 10 , b : 1.234 } ) ,
615
618
"@{a: 10, b: 1.2340}" ) ;
616
- exact_test ( & ( ~{ a: 10 , b: 1.234 } ) ,
619
+ exact_test ( & ( ~P { a : 10 , b : 1.234 } ) ,
617
620
"~{a: 10, b: 1.2340}" ) ;
618
621
exact_test ( & ( 10_u8 , ~"hello") ,
619
622
"(10, ~\" hello\" )" ) ;
You can’t perform that action at this time.
0 commit comments