File tree Expand file tree Collapse file tree 7 files changed +7
-7
lines changed
branches/try2/src/test/run-pass Expand file tree Collapse file tree 7 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5
5
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
- refs/heads/try2: 1088006ed9a66f7bf7f4d4768b60b8bf165c160e
8
+ refs/heads/try2: c19c24d193780bf889b62fe71770dfb3fbbae73f
9
9
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
10
10
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
11
11
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ struct cat {
5
5
6
6
impl cat : Drop {
7
7
fn finalize ( & self ) {
8
- self . done ( self . meows ) ;
8
+ ( self . done ) ( self . meows ) ;
9
9
}
10
10
}
11
11
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ type kitty_info = {kitty: cat};
12
12
13
13
// Code compiles and runs successfully if we add a + before the first arg
14
14
fn nyan ( kitty : cat , _kitty_info : kitty_info ) {
15
- kitty. meow ( ) ;
15
+ ( kitty. meow ) ( ) ;
16
16
}
17
17
18
18
fn main ( ) {
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ fn compute(i: mytype) -> int { return i.val + 20; }
4
4
5
5
fn main ( ) {
6
6
let myval = mytype ( { compute: compute, val: 30 } ) ;
7
- assert ( myval. compute ( myval) == 50 ) ;
7
+ assert ( ( myval. compute ) ( myval) == 50 ) ;
8
8
}
Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ fn main() {
10
10
let mut i = 3 ;
11
11
let cl_box = box_it ( || i += 1 ) ;
12
12
assert i == 3 ;
13
- cl_box. cl ( ) ;
13
+ ( cl_box. cl ) ( ) ;
14
14
assert i == 4 ;
15
15
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ fn box_it(+x: &r/fn()) -> closure_box/&r {
7
7
}
8
8
9
9
fn call_static_closure ( cl : closure_box/& static ) {
10
- cl. cl ( ) ;
10
+ ( cl. cl ) ( ) ;
11
11
}
12
12
13
13
fn main ( ) {
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ struct finish<T: Copy> {
7
7
8
8
impl < T : Copy > finish < T > : Drop {
9
9
fn finalize ( & self ) {
10
- self . arg . fin ( self . arg . val ) ;
10
+ ( self . arg . fin ) ( self . arg . val ) ;
11
11
}
12
12
}
13
13
You can’t perform that action at this time.
0 commit comments