File tree Expand file tree Collapse file tree 6 files changed +22
-8
lines changed
branches/try/src/test/run-fail Expand file tree Collapse file tree 6 files changed +22
-8
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: 72b669df431a24071dff69e5d3a52ef5ee965cb1
5
+ refs/heads/try: bb183b93ea2aacc9563aee782c9a239cf57da24f
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 11
11
// error-pattern:explicit failure
12
12
// Issue #2272 - unwind this without leaking the unique pointer
13
13
14
+ struct X { y : Y , a : ~int }
15
+
16
+ struct Y { z : @int }
17
+
14
18
fn main ( ) {
15
- let _x = {
16
- y : {
19
+ let _x = X {
20
+ y : Y {
17
21
z : @0
18
22
} ,
19
23
a : ~0
Original file line number Diff line number Diff line change 9
9
// except according to those terms.
10
10
11
11
// error-pattern:beep boop
12
+
13
+ struct Point { x : int , y : int }
14
+
12
15
fn main ( ) {
13
- let origin = { x: 0 , y: 0 } ;
14
- let f: { x : int , y : int } = { x : ( fail ~"beep boop") , .. origin} ;
16
+ let origin = Point { x : 0 , y : 0 } ;
17
+ let f: Point = Point { x : ( fail ~"beep boop") , .. origin} ;
15
18
}
Original file line number Diff line number Diff line change 11
11
// Tests that trans treats the rhs of pth's decl
12
12
// as a _|_-typed thing, not a str-typed thing
13
13
// error-pattern:bye
14
- fn main ( ) { let pth = fail ~"bye"; let rs: { t : ~str } = { t: pth} ; }
14
+
15
+ struct T { t : ~str }
16
+
17
+ fn main ( ) { let pth = fail ~"bye"; let rs: T = T { t : pth} ; }
Original file line number Diff line number Diff line change @@ -14,8 +14,10 @@ fn build() -> ~[int] {
14
14
fail;
15
15
}
16
16
17
+ struct Blk { node : ~[ int ] }
18
+
17
19
fn main ( ) {
18
- let blk = {
20
+ let blk = Blk {
19
21
node : build ( )
20
22
} ;
21
23
}
Original file line number Diff line number Diff line change @@ -18,8 +18,10 @@ fn build2() -> ~[int] {
18
18
fail;
19
19
}
20
20
21
+ struct Blk { node : ~[ int ] , span : ~[ int ] }
22
+
21
23
fn main ( ) {
22
- let blk = {
24
+ let blk = Blk {
23
25
node : build1 ( ) ,
24
26
span : build2 ( )
25
27
} ;
You can’t perform that action at this time.
0 commit comments