2018-08-08 14:28:26 +02:00
|
|
|
error[E0277]: `NoSync` cannot be shared between threads safely
|
2025-06-29 23:13:37 +05:00
|
|
|
--> $DIR/enum-negative-sync-impl.rs:20:19
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2025-06-29 23:13:37 +05:00
|
|
|
LL | requires_sync(container);
|
|
|
|
|
| ------------- ^^^^^^^^^ `NoSync` cannot be shared between threads safely
|
2021-10-22 13:49:12 -07:00
|
|
|
| |
|
|
|
|
|
| required by a bound introduced by this call
|
2018-08-08 14:28:26 +02:00
|
|
|
|
|
2025-08-19 17:49:20 +00:00
|
|
|
help: within `Container`, the trait `Sync` is not implemented for `NoSync`
|
|
|
|
|
--> $DIR/enum-negative-sync-impl.rs:9:1
|
|
|
|
|
|
|
|
|
|
|
LL | struct NoSync;
|
|
|
|
|
| ^^^^^^^^^^^^^
|
2025-06-29 23:13:37 +05:00
|
|
|
note: required because it appears within the type `Container`
|
|
|
|
|
--> $DIR/enum-negative-sync-impl.rs:12:6
|
2021-03-30 13:37:30 -07:00
|
|
|
|
|
2025-06-29 23:13:37 +05:00
|
|
|
LL | enum Container {
|
|
|
|
|
| ^^^^^^^^^
|
|
|
|
|
note: required by a bound in `requires_sync`
|
|
|
|
|
--> $DIR/enum-negative-sync-impl.rs:16:21
|
2021-07-31 09:26:55 -07:00
|
|
|
|
|
2025-06-29 23:13:37 +05:00
|
|
|
LL | fn requires_sync<T: Sync>(_: T) {}
|
|
|
|
|
| ^^^^ required by this bound in `requires_sync`
|
2018-08-08 14:28:26 +02:00
|
|
|
|
2023-11-21 15:44:16 +00: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`.
|