You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use std::thread;pubfnspawn_and_wait_nothing(){
std::thread::spawn(||{let i = 3*4;}).join().unwrap();}
However, compilation fails, complaining about unwrap not being found. As .ok().unwrap() works, the problem is probably that no implementation for Debug could be found. (#19950 tracks the unhelpful error message.)
The text was updated successfully, but these errors were encountered:
I would expect the following code to compile:
However, compilation fails, complaining about
unwrap
not being found. As.ok().unwrap()
works, the problem is probably that no implementation for Debug could be found. (#19950 tracks the unhelpful error message.)The text was updated successfully, but these errors were encountered: