File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: bee4e6adac17f87b1cdc26ab69f8c0f5d82575a3
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5
- refs/heads/try: af0dd16b1bf05f0ef671f6c6eea8fa1627015d88
5
+ refs/heads/try: f79571f51355826308573f713357eb9e33be665a
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -1731,11 +1731,11 @@ they try to access `x`:
1731
1731
let x = 3;
1732
1732
1733
1733
// `fun` is an invalid definition
1734
- fn fun () -> () { println!("{}", x) }; // cannot capture enclosing scope
1734
+ fn fun () -> () { println!("{}", x) } // cannot capture enclosing scope
1735
1735
let closure = || -> () { println!("{}", x) }; // can capture enclosing scope
1736
1736
1737
1737
// `fun_arg` is an invalid definition
1738
- fn fun_arg (arg: int) -> () { println!("{}", arg + x) }; // cannot capture enclosing scope
1738
+ fn fun_arg (arg: int) -> () { println!("{}", arg + x) } // cannot capture enclosing scope
1739
1739
let closure_arg = |arg: int| -> () { println!("{}", arg + x) }; // can capture enclosing scope
1740
1740
// ^
1741
1741
// Requires a type because the implementation needs to know which `+` to use.
You can’t perform that action at this time.
0 commit comments