We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad99849 commit e114053Copy full SHA for e114053
[refs]
@@ -1,5 +1,5 @@
1
---
2
-refs/heads/master: 9792002c6acce3484bc4fe1fcd87c1b6e62226e3
+refs/heads/master: 078fd23a077f4046a9951f02755e080d8e661e96
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
refs/heads/snap-stage3: a6d9689399d091c3265f00434a69c551a61c28dc
5
refs/heads/try: ef355f6332f83371e4acf04fc4eb940ab41d78d3
trunk/src/test/compile-fail/issue-1896-1.rs
@@ -11,7 +11,8 @@
11
struct boxedFn { theFn: &'self fn() -> uint }
12
13
fn createClosure (closedUint: uint) -> boxedFn {
14
- boxedFn {theFn: @fn () -> uint { closedUint }} //~ ERROR illegal borrow
+ let theFn: @fn() -> uint = || closedUint;
15
+ boxedFn {theFn: theFn} //~ ERROR illegal borrow
16
}
17
18
fn main () {
0 commit comments