fn bar<T: Send>(_: T) {}
fn main() {
- let x = Rc::new(5);
- bar(x); //~ ERROR instantiating a type parameter with an incompatible type `std::rc::Rc<int>`, which does not fulfill `Send`
+ let x = Rc::new(5i);
+ bar(x);
+ //~^ ERROR `core::kinds::Send` is not implemented
}