use std::rc::Rc; fn foo(_x: Rc) {} fn bar(_: F) { } fn main() { let x = Rc::new(3); bar(move|| foo(x)); //~^ ERROR `std::rc::Rc` cannot be sent between threads safely }