use std::cell::{Cell, RefCell}; use std::rc::{Rc, Weak}; use std::sync::mpsc::{Receiver, Sender}; fn test() {} fn main() { test::>(); //~^ ERROR `Cell` cannot be shared between threads safely [E0277] test::>(); //~^ ERROR `RefCell` cannot be shared between threads safely [E0277] test::>(); //~^ ERROR `Rc` cannot be shared between threads safely [E0277] test::>(); //~^ ERROR `std::rc::Weak` cannot be shared between threads safely [E0277] test::>(); //~^ ERROR `std::sync::mpsc::Receiver` cannot be shared between threads safely [E0277] test::>(); //~^ ERROR `Sender` cannot be shared between threads safely [E0277] }