]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bad-method-typaram-kind.stderr
Rollup merge of #82179 - mbartlett21:patch-5, r=joshtriplett
[rust.git] / src / test / ui / traits / bad-method-typaram-kind.stderr
1 error[E0277]: `T` cannot be sent between threads safely
2   --> $DIR/bad-method-typaram-kind.rs:2:7
3    |
4 LL |     1.bar::<T>();
5    |       ^^^ `T` cannot be sent between threads safely
6    |
7 help: consider further restricting this bound
8    |
9 LL | fn foo<T:'static + std::marker::Send>() {
10    |                  ^^^^^^^^^^^^^^^^^^^
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.