2018-09-30 02:41:49 +01:00
|
|
|
error[E0277]: `*const Bar` cannot be shared between threads safely
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/recursive-requirements.rs:16:12
|
2018-01-27 12:02:45 +01:00
|
|
|
|
|
2018-09-30 02:41:49 +01:00
|
|
|
LL | let _: AssertSync<Foo> = unimplemented!();
|
|
|
|
| ^^^^^^^^^^^^^^^ `*const Bar` cannot be shared between threads safely
|
2018-01-27 12:02:45 +01:00
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `Foo`, the trait `Sync` is not implemented for `*const Bar`, which is required by `Foo: Sync`
|
2021-03-30 13:37:30 -07:00
|
|
|
note: required because it appears within the type `Foo`
|
|
|
|
--> $DIR/recursive-requirements.rs:5:12
|
|
|
|
|
|
|
|
|
LL | pub struct Foo {
|
|
|
|
| ^^^
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `AssertSync`
|
|
|
|
--> $DIR/recursive-requirements.rs:3:22
|
|
|
|
|
|
|
|
|
LL | struct AssertSync<T: Sync>(PhantomData<T>);
|
|
|
|
| ^^^^ required by this bound in `AssertSync`
|
2018-09-30 02:41:49 +01:00
|
|
|
|
|
|
|
error[E0277]: `*const Foo` cannot be shared between threads safely
|
2018-12-25 08:56:47 -07:00
|
|
|
--> $DIR/recursive-requirements.rs:16:12
|
2018-09-30 02:41:49 +01:00
|
|
|
|
|
|
|
|
LL | let _: AssertSync<Foo> = unimplemented!();
|
|
|
|
| ^^^^^^^^^^^^^^^ `*const Foo` cannot be shared between threads safely
|
|
|
|
|
|
2024-01-29 18:31:02 +00:00
|
|
|
= help: within `Foo`, the trait `Sync` is not implemented for `*const Foo`, which is required by `Foo: Sync`
|
2021-03-30 13:37:30 -07:00
|
|
|
note: required because it appears within the type `Bar`
|
|
|
|
--> $DIR/recursive-requirements.rs:10:12
|
|
|
|
|
|
|
|
|
LL | pub struct Bar {
|
|
|
|
| ^^^
|
2023-05-03 19:27:29 +03:00
|
|
|
note: required because it appears within the type `PhantomData<Bar>`
|
|
|
|
--> $SRC_DIR/core/src/marker.rs:LL:COL
|
2021-03-30 13:37:30 -07:00
|
|
|
note: required because it appears within the type `Foo`
|
|
|
|
--> $DIR/recursive-requirements.rs:5:12
|
|
|
|
|
|
|
|
|
LL | pub struct Foo {
|
|
|
|
| ^^^
|
2021-07-31 09:26:55 -07:00
|
|
|
note: required by a bound in `AssertSync`
|
|
|
|
--> $DIR/recursive-requirements.rs:3:22
|
|
|
|
|
|
|
|
|
LL | struct AssertSync<T: Sync>(PhantomData<T>);
|
|
|
|
| ^^^^ required by this bound in `AssertSync`
|
2018-01-27 12:02:45 +01:00
|
|
|
|
2018-09-30 02:41:49 +01:00
|
|
|
error: aborting due to 2 previous errors
|
2018-01-27 12:02:45 +01:00
|
|
|
|
2018-09-30 02:41:49 +01:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|