File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f149ea0c689e903c2db1f2aee45a9fb60f168374
2
+ refs/heads/master: 0b1675da16fc95ea3fc7a90632de088d6d7b99f9
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5
5
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
Original file line number Diff line number Diff line change
1
+ // xfail-test
2
+ use std;
3
+ import std:: arena;
4
+ import std:: arena:: arena;
5
+
6
+ enum hold { s( str ) }
7
+
8
+ fn init ( ar : & a. arena:: arena , str : str ) -> & a. hold {
9
+ new ( * ar) s( str)
10
+ }
11
+
12
+ fn main ( args : [ str ] ) {
13
+ let ar = arena:: arena ( ) ;
14
+ let leak = init ( & ar, args[ 0 ] ) ;
15
+ alt * leak {
16
+ s( astr) {
17
+ io:: println ( #fmt ( "%?" , astr) ) ;
18
+ }
19
+ } ;
20
+ }
You can’t perform that action at this time.
0 commit comments