File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
branches/snap-stage3/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 1
1
---
2
2
refs/heads/master: 3bbcac322669cff3abde5be937cc4ec3860f3985
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
- refs/heads/snap-stage3: 9792002c6acce3484bc4fe1fcd87c1b6e62226e3
4
+ refs/heads/snap-stage3: 078fd23a077f4046a9951f02755e080d8e661e96
5
5
refs/heads/try: 2a8fb58d79e685d5ca07b039badcf2ae3ef077ea
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
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