2 #![allow(unused_variables)]
3 // ignore-emscripten no threads support
10 let closure = move |x: u8| y + x;
12 // Check that both closures are capturing by value
13 assert_eq!(1, mem::size_of_val(&closure));
15 thread::spawn(move|| {
17 }).join().ok().unwrap();