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