Skip to content

Commit 05e7a1c

Browse files
committed
---
yaml --- r: 48493 b: refs/heads/snap-stage3 c: 078fd23 h: refs/heads/master i: 48491: 45af499 v: v3
1 parent 4414113 commit 05e7a1c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 9792002c6acce3484bc4fe1fcd87c1b6e62226e3
4+
refs/heads/snap-stage3: 078fd23a077f4046a9951f02755e080d8e661e96
55
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/test/compile-fail/issue-1896-1.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
struct boxedFn { theFn: &'self fn() -> uint }
1212

1313
fn createClosure (closedUint: uint) -> boxedFn {
14-
boxedFn {theFn: @fn () -> uint { closedUint }} //~ ERROR illegal borrow
14+
let theFn: @fn() -> uint = || closedUint;
15+
boxedFn {theFn: theFn} //~ ERROR illegal borrow
1516
}
1617

1718
fn main () {

0 commit comments

Comments
 (0)