1 2 3 4 5 6 7 8 9 10 11 12 13 14
use std::thread; use cowstr::*; #[test] fn smoke() { let substr = SubStr::from("foo"); let thread = thread::spawn(move || { assert_eq!(substr, "foo"); }); thread.join().expect("success"); }