use std::sync::mpsc;
use std::thread;

fn main() {
    let (tx, rx) = mpsc::channel();

    thread::spawn(move || {
        let val = String::from("pozdrowienia");
        tx.send(val).unwrap();
    });
}
