2 // Check that functions can modify local state.
4 // pretty-expanded FIXME #23616
6 #![feature(box_syntax)]
8 fn sums_to(v: Vec<isize> , sum: isize) -> bool {
18 fn sums_to_using_uniq(v: Vec<isize> , sum: isize) -> bool {
20 let mut sum0: Box<_> = box 0;
28 fn sums_to_using_rec(v: Vec<isize> , sum: isize) -> bool {
30 let mut sum0 = F {f: 0};
40 fn sums_to_using_uniq_rec(v: Vec<isize> , sum: isize) -> bool {
42 let mut sum0 = F::<Box<_>> {f: box 0};
47 return *sum0.f == sum;