]> git.lizzy.rs Git - rust.git/blob - src/test/ui/recursion/recursive-requirements.stderr
6c0be0f7f8d7760a07339dda2e722d73cbc2b8b3
[rust.git] / src / test / ui / recursion / recursive-requirements.stderr
1 error[E0277]: `*const Bar` cannot be shared between threads safely
2   --> $DIR/recursive-requirements.rs:16:12
3    |
4 LL | struct AssertSync<T: Sync>(PhantomData<T>);
5    |                      ---- required by this bound in `AssertSync`
6 ...
7 LL |     let _: AssertSync<Foo> = unimplemented!();
8    |            ^^^^^^^^^^^^^^^ `*const Bar` cannot be shared between threads safely
9    |
10    = help: within `Foo`, the trait `Sync` is not implemented for `*const Bar`
11    = note: required because it appears within the type `Foo`
12
13 error[E0277]: `*const Foo` cannot be shared between threads safely
14   --> $DIR/recursive-requirements.rs:16:12
15    |
16 LL | struct AssertSync<T: Sync>(PhantomData<T>);
17    |                      ---- required by this bound in `AssertSync`
18 ...
19 LL |     let _: AssertSync<Foo> = unimplemented!();
20    |            ^^^^^^^^^^^^^^^ `*const Foo` cannot be shared between threads safely
21    |
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`
26
27 error: aborting due to 2 previous errors
28
29 For more information about this error, try `rustc --explain E0277`.