ARMANRIAZIRUSTERROREerror [E0382]: Ausleihe des bewegten Wertes: `val` ... Thread

    //resolved by commenting println line
    thread::spawn(move || {
        let val = String::from("hi");
        tx.send(val).unwrap();
       // println!("val is {}", val);
    });
ArmanRiazi