1 error[E0382]: borrow of moved value: `message`
2 --> $DIR/liveness-use-after-send.rs:16:20
4 LL | fn test00_start(ch: Chan<Box<isize>>, message: Box<isize>, _count: Box<isize>) {
5 | ------- move occurs because `message` has type `Box<isize>`, which does not implement the `Copy` trait
6 LL | send(ch, message);
7 | ------- value moved here
8 LL | println!("{}", message);
9 | ^^^^^^^ value borrowed here after move
11 note: consider changing this parameter type in function `send` to borrow instead if owning the value isn't necessary
12 --> $DIR/liveness-use-after-send.rs:3:54
14 LL | fn send<T:Send + std::fmt::Debug>(ch: Chan<T>, data: T) {
15 | ---- in this function ^ this parameter takes ownership of the value
16 = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
17 help: consider cloning the value if the performance cost is acceptable
19 LL | send(ch, message.clone());
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0382`.