rust/tests/ui/traits/bad-method-typaram-kind.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
621 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0277]: `T` cannot be sent between threads safely
2022-08-16 06:27:22 +00:00
--> $DIR/bad-method-typaram-kind.rs:2:13
2018-08-08 12:28:26 +00:00
|
2019-03-09 12:03:44 +00:00
LL | 1.bar::<T>();
2022-08-16 06:27:22 +00:00
| ^ `T` cannot be sent between threads safely
2018-08-08 12:28:26 +00:00
|
note: required by a bound in `Bar::bar`
--> $DIR/bad-method-typaram-kind.rs:6:14
|
LL | fn bar<T:Send>(&self);
| ^^^^ required by this bound in `Bar::bar`
help: consider further restricting this bound
|
LL | fn foo<T:'static + std::marker::Send>() {
| +++++++++++++++++++
2018-08-08 12:28:26 +00:00
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.