]> git.proxmox.com Git - rustc.git/blob - 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
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: the trait `std::marker::Send` is not implemented for `T`
8 help: consider further restricting this bound
9 |
10 LL | fn foo<T:'static + std::marker::Send>() {
11 | ^^^^^^^^^^^^^^^^^^^
12
13 error: aborting due to previous error
14
15 For more information about this error, try `rustc --explain E0277`.