Skip to content

Commit e114053

Browse files
committed
---
yaml --- r: 45001 b: refs/heads/master c: 078fd23 h: refs/heads/master i: 44999: e879a78 v: v3
1 parent ad99849 commit e114053

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,5 +1,5 @@
11
---
2-
refs/heads/master: 9792002c6acce3484bc4fe1fcd87c1b6e62226e3
2+
refs/heads/master: 078fd23a077f4046a9951f02755e080d8e661e96
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
55
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3

trunk/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)