-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
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.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Description
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.
Metadata
Metadata
Assignees
Labels
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.I-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️