blob: 56bdd5be7cff384b5b16621055bec8d0f62f45dc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
error[E0277]: `A` cannot be shared between threads safely
--> $DIR/extern-types-not-sync-send.rs:15:19
|
LL | assert_sync::<A>();
| ^ `A` cannot be shared between threads safely
|
= help: the trait `Sync` is not implemented for `A`
note: required by a bound in `assert_sync`
--> $DIR/extern-types-not-sync-send.rs:11:34
|
LL | fn assert_sync<T: PointeeSized + Sync>() {}
| ^^^^ required by this bound in `assert_sync`
error[E0277]: `A` cannot be sent between threads safely
--> $DIR/extern-types-not-sync-send.rs:18:19
|
LL | assert_send::<A>();
| ^ `A` cannot be sent between threads safely
|
= help: the trait `Send` is not implemented for `A`
note: required by a bound in `assert_send`
--> $DIR/extern-types-not-sync-send.rs:12:34
|
LL | fn assert_send<T: PointeeSized + Send>() {}
| ^^^^ required by this bound in `assert_send`
error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.
|