1 error[E0277]: `*const Bar` cannot be shared between threads safely
2 --> $DIR/recursive-requirements.rs:16:12
4 LL | struct AssertSync<T: Sync>(PhantomData<T>);
5 | ---- required by this bound in `AssertSync`
7 LL | let _: AssertSync<Foo> = unimplemented!();
8 | ^^^^^^^^^^^^^^^ `*const Bar` cannot be shared between threads safely
10 = help: within `Foo`, the trait `Sync` is not implemented for `*const Bar`
11 = note: required because it appears within the type `Foo`
13 error[E0277]: `*const Foo` cannot be shared between threads safely
14 --> $DIR/recursive-requirements.rs:16:12
16 LL | struct AssertSync<T: Sync>(PhantomData<T>);
17 | ---- required by this bound in `AssertSync`
19 LL | let _: AssertSync<Foo> = unimplemented!();
20 | ^^^^^^^^^^^^^^^ `*const Foo` cannot be shared between threads safely
22 = help: within `Foo`, the trait `Sync` is not implemented for `*const Foo`
23 = note: required because it appears within the type `Bar`
24 = note: required because it appears within the type `PhantomData<Bar>`
25 = note: required because it appears within the type `Foo`
27 error: aborting due to 2 previous errors
29 For more information about this error, try `rustc --explain E0277`.