File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 6e63e2fd5f4b081c706edc9f3fa1f6c02fab21c7
2
+ refs/heads/master: f0d8e978a94efe228e2ce9ca89bb4044be040c04
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
+ // Currently segfaults
2
+ // xfail-test
3
+ class cat {
4
+ let mut meow : fn @( ) ;
5
+ new ( ) { self . meow = fn @( ) { #error ( "meow" ) ; } ; }
6
+ }
7
+
8
+ type kitty_info = { kitty: cat} ;
9
+
10
+ // Code compiles and runs successfully if we add a + before the first arg
11
+ fn nyan ( kitty : cat , _kitty_info : kitty_info ) {
12
+ kitty. meow ( ) ;
13
+ }
14
+
15
+ fn main ( ) {
16
+ let mut kitty = cat ( ) ;
17
+ nyan ( kitty, { kitty: kitty} ) ;
18
+ }
You can’t perform that action at this time.
0 commit comments