File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
branches/auto/src/test/compile-fail Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -14,4 +14,4 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
14
14
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
15
15
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
16
16
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17
- refs/heads/auto: 9792002c6acce3484bc4fe1fcd87c1b6e62226e3
17
+ refs/heads/auto: 078fd23a077f4046a9951f02755e080d8e661e96
Original file line number Diff line number Diff line change 11
11
struct boxedFn { theFn : & ' self fn ( ) -> uint }
12
12
13
13
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
15
16
}
16
17
17
18
fn main ( ) {
You can’t perform that action at this time.
0 commit comments