fn foo() { 1.bar::(); //~ ERROR `T` cannot be sent between threads safely } trait Bar { fn bar(&self); } impl Bar for usize { fn bar(&self) { } } fn main() {}