about summary refs log tree commit diff
path: root/example/std_example.rs
diff options
context:
space:
mode:
authorbjorn3 <bjorn3@users.noreply.github.com>2019-10-27 16:55:35 +0100
committerbjorn3 <bjorn3@users.noreply.github.com>2020-02-26 14:41:05 +0100
commitc8de552c0134896c8c804c7ca74555bd300ee937 (patch)
tree2fa57c5c8ced519e4290e0f56f6d59eb5f0b54e6 /example/std_example.rs
parent0e0afb4f1fe47638aa59e41ce0b9a775bb4c15f6 (diff)
downloadrust-c8de552c0134896c8c804c7ca74555bd300ee937.tar.gz
rust-c8de552c0134896c8c804c7ca74555bd300ee937.zip
Tls support
Diffstat (limited to 'example/std_example.rs')
-rw-r--r--example/std_example.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/std_example.rs b/example/std_example.rs
index eccffc62140..3332c025e17 100644
--- a/example/std_example.rs
+++ b/example/std_example.rs
@@ -12,6 +12,10 @@ fn main() {
     let stderr = ::std::io::stderr();
     let mut stderr = stderr.lock();
 
+    std::thread::spawn(move || {
+        println!("Hello from another thread!");
+    });
+
     writeln!(stderr, "some {} text", "<unknown>").unwrap();
 
     let _ = std::process::Command::new("true").env("c", "d").spawn();