]> git.proxmox.com Git - rustc.git/blob - src/doc/book/listings/ch20-web-server/listing-20-17/output.txt
New upstream version 1.57.0+dfsg1
[rustc.git] / src / doc / book / listings / ch20-web-server / listing-20-17 / output.txt
1 $ cargo check
2 Checking hello v0.1.0 (file:///projects/hello)
3 error[E0382]: use of moved value: `receiver`
4 --> src/lib.rs:27:42
5 |
6 22 | let (sender, receiver) = mpsc::channel();
7 | -------- move occurs because `receiver` has type `std::sync::mpsc::Receiver<Job>`, which does not implement the `Copy` trait
8 ...
9 27 | workers.push(Worker::new(id, receiver));
10 | ^^^^^^^^ value moved here, in previous iteration of loop
11
12 For more information about this error, try `rustc --explain E0382`.
13 error: could not compile `hello` due to previous error