Closed
Description
I'm playing with the new closures and ran into a segmentation fault when I tried this:
#![feature(unboxed_closures)]
#![feature(overloaded_calls)]
fn main() {
let mut test = box 5i;
let change = ref |:| { *test = 10 };
change();
println!("{}", test);
}
Not sure if this was reported before or a known issue but I thought I better report it.
/cc @pcwalton