]> git.proxmox.com Git - rustc.git/blame - src/test/ui/bad/bad-method-typaram-kind.stderr
New upstream version 1.44.1+dfsg1
[rustc.git] / src / test / ui / bad / bad-method-typaram-kind.stderr
CommitLineData
b7449926 1error[E0277]: `T` cannot be sent between threads safely
0731742a 2 --> $DIR/bad-method-typaram-kind.rs:2:7
b7449926 3 |
532ac7d7 4LL | 1.bar::<T>();
b7449926
XL
5 | ^^^ `T` cannot be sent between threads safely
6 |
7 = help: the trait `std::marker::Send` is not implemented for `T`
ba9703b0 8help: consider further restricting this bound
74b04a01 9 |
ba9703b0
XL
10LL | fn foo<T:'static + std::marker::Send>() {
11 | ^^^^^^^^^^^^^^^^^^^
b7449926
XL
12
13error: aborting due to previous error
14
15For more information about this error, try `rustc --explain E0277`.