-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
A-closuresArea: Closures (`|…| { … }`)Area: Closures (`|…| { … }`)E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.
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
Metadata
Metadata
Assignees
Labels
A-closuresArea: Closures (`|…| { … }`)Area: Closures (`|…| { … }`)E-needs-testCall for participation: An issue has been fixed and does not reproduce, but no test has been added.Call for participation: An issue has been fixed and does not reproduce, but no test has been added.