File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed
branches/try/src/test/pretty Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: 19dfec2aaf746535de1521f68421f9980dbf25de
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 2f46b763da2c098913884f101b6d71d69af41b49
5
- refs/heads/try: 58ec84a098376860c2126389938b340fbb810d78
5
+ refs/heads/try: 3b36708ca78f82d226d53ed66b1878f482ced468
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278
Original file line number Diff line number Diff line change @@ -16,8 +16,10 @@ fn test1() { let val = @0; { } *val; }
16
16
17
17
fn test2 ( ) -> int { let val = @0 ; { } * val }
18
18
19
+ struct S { mut eax : int }
20
+
19
21
fn test3 ( ) {
20
- let regs = @{ mut eax: 0 } ;
22
+ let regs = @S { mut eax : 0 } ;
21
23
match true { true => { } _ => { } }
22
24
( * regs) . eax = 1 ;
23
25
}
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
+ // NOTE this is a pretty-printer bug that I fixed, but it's
12
+ // not in the snapshot yet. After a new snapshot, can un-xfail
13
+ // xfail-pretty
11
14
// pp-exact
12
- type thing = { x : int , y : int , } ;
15
+ struct Thing {
16
+ x : int ,
17
+ y : int ,
18
+ }
13
19
14
20
fn main ( ) {
15
- let sth = { x: 0 , y: 1 , } ;
16
- let sth2 = { y: 9 , ..sth} ;
21
+ let sth = Thing { x : 0 , y : 1 , } ;
22
+ let sth2 = Thing { y : 9 , ..sth} ;
17
23
assert sth. x + sth2. y == 9 ;
18
24
}
You can’t perform that action at this time.
0 commit comments