File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed
branches/try/src/test/run-pass Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5
- refs/heads/try: e2c09fa3b997e09176d7cca228be2727ba525aa5
5
+ refs/heads/try: a87a26a9d132a9709c253136a2a0200664ae3f8d
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change 10
10
11
11
// xfail-test
12
12
// -*- rust -*-
13
- extern mod std;
13
+ extern mod core;
14
+ use core:: gc;
15
+ use core:: gc:: rustrt;
14
16
15
- type cell = { c : @list } ;
17
+ struct cell { c : @list }
16
18
17
19
enum list { link( @mut cell ) , nil, }
18
20
19
21
pub fn main ( ) {
20
- let first: @cell = @mut { c: @nil ( ) } ;
21
- let second: @cell = @mut { c: @link ( first) } ;
22
+ let first: @cell = @mut cell { c : @nil ( ) } ;
23
+ let second: @cell = @mut cell { c : @link ( first) } ;
22
24
first. _0 = @link ( second) ;
23
- sys . rustrt . gc ( ) ;
24
- let third: @cell = @mut { c: @nil ( ) } ;
25
+ rustrt:: gc ( ) ;
26
+ let third: @cell = @mut cell { c : @nil ( ) } ;
25
27
}
You can’t perform that action at this time.
0 commit comments