rust/src/test/ui/bad/bad-method-typaram-kind.stderr

13 lines
480 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0277]: `T` cannot be sent between threads safely
2018-12-25 08:56:47 -07:00
--> $DIR/bad-method-typaram-kind.rs:2:7
2018-08-08 14:28:26 +02:00
|
LL | 1.bar::<T>(); //~ ERROR `T` cannot be sent between threads safely
| ^^^ `T` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `T`
= help: consider adding a `where T: std::marker::Send` bound
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.