File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: fb4e618c33789da31614d1d92b7c760df5db426b
2
+ refs/heads/master: c0a7d557dbea830ae581ecb3f77f08b7e4daad4a
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: f89e975685a3a9f258c996865cdd144a0f30f83c
5
5
refs/heads/try: f58aad6dce273570fb130b4df008ef9acd5a5be2
Original file line number Diff line number Diff line change 14
14
// Test that mutating a mutable upvar in a capture-by-value unboxed
15
15
// closure does not ice (issue #18238) and marks the upvar as used
16
16
// mutably so we do not get a spurious warning about it not needing to
17
- // be declared mutable (issue #18336).
17
+ // be declared mutable (issue #18336 and #18769)
18
+
19
+ fn set ( x : & mut uint ) { * x = 42 ; }
18
20
19
21
fn main( ) {
20
22
{
@@ -25,4 +27,12 @@ fn main() {
25
27
let mut x = 0 u;
26
28
move |: | x += 1 ;
27
29
}
30
+ {
31
+ let mut x = 0 u;
32
+ move |& mut : | set( & mut x) ;
33
+ }
34
+ {
35
+ let mut x = 0 u;
36
+ move |: | set ( & mut x) ;
37
+ }
28
38
}
You can’t perform that action at this time.
0 commit comments