]> git.lizzy.rs Git - rust.git/blobdiff - src/test/compile-fail/no_send-rc.rs
rollup merge of #17355 : gamazeps/issue17210
[rust.git] / src / test / compile-fail / no_send-rc.rs
index d884ff7f231685f503ce41bf77fafe7918cad5c7..c05b17afe1d27bf960eb7217fc6e7f3089efb668 100644 (file)
@@ -13,6 +13,7 @@
 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
 }