blob: 45c9d8be85ee91746692bdb2526eb2b4b7181a75 [file] [log] [blame]
error[E0277]: `T` cannot be sent between threads safely
--> $DIR/typeck-default-trait-impl-send-param.rs:5:15
|
LL | is_send::<T>()
| ^ `T` cannot be sent between threads safely
...
LL | fn is_send<T:Send>() {
| ------- ---- required by this bound in `is_send`
|
= help: the trait `std::marker::Send` is not implemented for `T`
help: consider restricting this type parameter with `T: std::marker::Send`
--> $DIR/typeck-default-trait-impl-send-param.rs:4:8
|
LL | fn foo<T>() {
| ^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.