Skip to content

Commit b66ca2b

Browse files
committed
---
yaml --- r: 46784 b: refs/heads/auto c: 078fd23 h: refs/heads/master v: v3
1 parent cc9f7ca commit b66ca2b

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
@@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 9792002c6acce3484bc4fe1fcd87c1b6e62226e3
17+
refs/heads/auto: 078fd23a077f4046a9951f02755e080d8e661e96

branches/auto/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)