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

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

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

fn main() {
    println!("Hello, world!");
}

--- 
+++ 
@@ -1,11 +1,3 @@
-use std::thread;
-use std::sync::mpsc;
-
 fn main() {
-    let (tx, rx) = mpsc::channel();
-
-    thread::spawn(move || {
-        let val = String::from("Hello there");
-        tx.send(val).unwrap();
-    });
+    println!("Hello, world!");
 }
Create channel and spawn a thread that sends string through it
