about summary refs log tree commit diff
path: root/tests/ui/errors/remap-path-prefix-sysroot.without-remap.stderr
blob: 9b337699c329540afd205e8dc9d82bedaba6b37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
error[E0507]: cannot move out of `self.thread` which is behind a mutable reference
  --> $DIR/remap-path-prefix-sysroot.rs:LL:COL
   |
LL |         self.thread.join().unwrap();
   |         ^^^^^^^^^^^ ------ `self.thread` moved due to this method call
   |         |
   |         move occurs because `self.thread` has type `JoinHandle<()>`, which does not implement the `Copy` trait
   |
note: `JoinHandle::<T>::join` takes ownership of the receiver `self`, which moves `self.thread`
  --> $SRC_DIR_REAL/std/src/thread/mod.rs:LL:COL
   |
LL |     pub fn join(self) -> Result<T> {
   |                 ^^^^

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0507`.