//@ run-pass#![allow(unused_variables)]//@ needs-threadsusestd::thread;usestd::mem;fnmain(){lety=0u8;letclosure=move|x:u8|y+x;// Check that both closures are capturing by valueassert_eq!(1,mem::size_of_val(&closure));thread::spawn(move||{letok=closure;}).join().ok().unwrap();}