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.

22 lines
691 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02: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 14:28:26 +02:00
|
2019-03-09 15:03:44 +03:00
LL | 1.bar::<T>();
2023-08-26 19:25:46 +00:00
| --- ^ `T` cannot be sent between threads safely
| |
| required by a bound introduced by this call
2018-08-08 14:28:26 +02: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 14:28:26 +02:00
error: aborting due to 1 previous error
2018-08-08 14:28:26 +02:00
For more information about this error, try `rustc --explain E0277`.