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