Closed
Description
openedon Dec 21, 2014
fn main() {
std::task::spawn(move || panic!("A")); // OK
std::thread::Thread::spawn(move || panic!("B")).detach(); // Can't infer the return type
}
- http://is.gd/46Dv8w [playpen]
This makes the deprecation process of task::spawn()
non-trivial.
Thread::spawn::<(), FnOnce()+Send>(move || panic!("B")).detach();
did not work, either.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Metadata
Assignees
Labels
Call 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.Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️