]> git.lizzy.rs Git - rust.git/blob - src/test/ui/kindck/kindck-nonsendable-1.rs
Update ui tests
[rust.git] / src / test / ui / kindck / kindck-nonsendable-1.rs
1 use std::rc::Rc;
2
3 fn foo(_x: Rc<usize>) {}
4
5 fn bar<F:FnOnce() + Send>(_: F) { }
6
7 fn main() {
8     let x = Rc::new(3);
9     bar(move|| foo(x));
10     //~^ ERROR `std::rc::Rc<usize>` cannot be sent between threads safely
11 }