2 Checking hello v0.1.0 (file:///projects/hello)
3 error[E0599]: no method named `join` found for enum `Option` in the current scope
6 52 | worker.thread.join().unwrap();
7 | ^^^^ method not found in `Option<JoinHandle<()>>`
9 error[E0308]: mismatched types
12 72 | Worker { id, thread }
13 | ^^^^^^ expected enum `Option`, found struct `JoinHandle`
15 = note: expected enum `Option<JoinHandle<()>>`
16 found struct `JoinHandle<_>`
17 help: try wrapping the expression in `Some`
19 72 | Worker { id, thread: Some(thread) }
22 Some errors have detailed explanations: E0308, E0599.
23 For more information about an error, try `rustc --explain E0308`.
24 error: could not compile `hello` due to 2 previous errors