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