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