]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch20-web-server/no-listing-04-update-worker-definition/output.txt
New upstream version 1.63.0+dfsg1
[rustc.git] / src / doc / book / listings / ch20-web-server / no-listing-04-update-worker-definition / output.txt
1 $ cargo check
2 Checking hello v0.1.0 (file:///projects/hello)
3 error[E0599]: no method named `join` found for enum `Option` in the current scope
4 --> src/lib.rs:52:27
5 |
6 52 | worker.thread.join().unwrap();
7 | ^^^^ method not found in `Option<JoinHandle<()>>`
8
9 error[E0308]: mismatched types
10 --> src/lib.rs:72:22
11 |
12 72 | Worker { id, thread }
13 | ^^^^^^ expected enum `Option`, found struct `JoinHandle`
14 |
15 = note: expected enum `Option<JoinHandle<()>>`
16 found struct `JoinHandle<_>`
17 help: try wrapping the expression in `Some`
18 |
19 72 | Worker { id, thread: Some(thread) }
20 | +++++++++++++ +
21
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