]>
Commit | Line | Data |
---|---|---|
74b04a01 XL |
1 | $ cargo check |
2 | Checking hello v0.1.0 (file:///projects/hello) | |
3 | error[E0507]: cannot move out of `worker.thread` which is behind a mutable reference | |
923072b8 FG |
4 | --> src/lib.rs:52:13 |
5 | | | |
6 | 52 | worker.thread.join().unwrap(); | |
7 | | ^^^^^^^^^^^^^ ------ `worker.thread` moved due to this method call | |
8 | | | | |
9 | | move occurs because `worker.thread` has type `JoinHandle<()>`, which does not implement the `Copy` trait | |
10 | | | |
11 | note: this function takes ownership of the receiver `self`, which moves `worker.thread` | |
74b04a01 | 12 | |
74b04a01 | 13 | For more information about this error, try `rustc --explain E0507`. |
c295e0f8 | 14 | error: could not compile `hello` due to previous error |