]> git.lizzy.rs Git - rust.git/blob - src/test/ui/typeck/typeck-default-trait-impl-send-param.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / typeck / typeck-default-trait-impl-send-param.stderr
1 error[E0277]: `T` cannot be sent between threads safely
2   --> $DIR/typeck-default-trait-impl-send-param.rs:15:5
3    |
4 LL |     is_send::<T>() //~ ERROR E0277
5    |     ^^^^^^^^^^^^ `T` cannot be sent between threads safely
6    |
7    = help: the trait `std::marker::Send` is not implemented for `T`
8    = help: consider adding a `where T: std::marker::Send` bound
9 note: required by `is_send`
10   --> $DIR/typeck-default-trait-impl-send-param.rs:18:1
11    |
12 LL | fn is_send<T:Send>() {
13    | ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.