]> git.lizzy.rs Git - rust.git/blob - src/test/ui/traits/bad-method-typaram-kind.stderr
:arrow_up: rust-analyzer
[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:13
3    |
4 LL |     1.bar::<T>();
5    |             ^ `T` cannot be sent between threads safely
6    |
7 note: required by a bound in `Bar::bar`
8   --> $DIR/bad-method-typaram-kind.rs:6:14
9    |
10 LL |     fn bar<T:Send>(&self);
11    |              ^^^^ required by this bound in `Bar::bar`
12 help: consider further restricting this bound
13    |
14 LL | fn foo<T:'static + std::marker::Send>() {
15    |                  +++++++++++++++++++
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.