Files
rust/tests/ui/traits/enum-negative-send-impl.stderr

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

28 lines
923 B
Plaintext
Raw Normal View History

2018-08-08 14:28:26 +02:00
error[E0277]: `NoSend` cannot be sent between threads safely
2025-06-29 23:13:37 +05:00
--> $DIR/enum-negative-send-impl.rs:20:19
2018-08-08 14:28:26 +02:00
|
2025-06-29 23:13:37 +05:00
LL | requires_send(container);
| ------------- ^^^^^^^^^ `NoSend` cannot be sent between threads safely
| |
| required by a bound introduced by this call
2018-08-08 14:28:26 +02:00
|
help: within `Container`, the trait `Send` is not implemented for `NoSend`
--> $DIR/enum-negative-send-impl.rs:9:1
|
LL | struct NoSend;
| ^^^^^^^^^^^^^
2025-06-29 23:13:37 +05:00
note: required because it appears within the type `Container`
--> $DIR/enum-negative-send-impl.rs:12:6
|
2025-06-29 23:13:37 +05:00
LL | enum Container {
| ^^^^^^^^^
note: required by a bound in `requires_send`
--> $DIR/enum-negative-send-impl.rs:16:21
|
2025-06-29 23:13:37 +05:00
LL | fn requires_send<T: Send>(_: T) {}
| ^^^^ required by this bound in `requires_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`.