|
1 | 1 | error[E0277]: `*mut c_void` cannot be shared between threads safely |
2 | | - --> tests/compile-fail/socket-thread-unsafe.rs:13:13 |
3 | | - | |
4 | | -13 | let t = thread::spawn(move || { |
5 | | - | ^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely |
6 | | - | |
7 | | - = help: within `Socket`, the trait `Sync` is not implemented for `*mut c_void` |
8 | | - = note: required because it appears within the type `Socket` |
9 | | - = note: required because of the requirements on the impl of `Send` for `&Socket` |
| 2 | + --> tests/compile-fail/socket-thread-unsafe.rs:13:13 |
| 3 | + | |
| 4 | +13 | let t = thread::spawn(move || { |
| 5 | + | ^^^^^^^^^^^^^ `*mut c_void` cannot be shared between threads safely |
| 6 | + | |
| 7 | + = help: within `Socket`, the trait `Sync` is not implemented for `*mut c_void` |
| 8 | + = note: required because it appears within the type `Socket` |
| 9 | + = note: required because of the requirements on the impl of `Send` for `&Socket` |
10 | 10 | note: required because it's used within this closure |
11 | | - --> tests/compile-fail/socket-thread-unsafe.rs:13:27 |
12 | | - | |
13 | | -13 | let t = thread::spawn(move || { |
14 | | - | ___________________________^ |
15 | | -14 | | t!(s.bind("tcp://127.0.0.1:12345")) |
16 | | -15 | | }); |
17 | | - | |_____^ |
| 11 | + --> tests/compile-fail/socket-thread-unsafe.rs:13:27 |
| 12 | + | |
| 13 | +13 | let t = thread::spawn(move || { |
| 14 | + | ___________________________^ |
| 15 | +14 | | t!(s.bind("tcp://127.0.0.1:12345")) |
| 16 | +15 | | }); |
| 17 | + | |_____^ |
18 | 18 | note: required by a bound in `spawn` |
19 | | - --> $RUST/std/src/thread/mod.rs |
20 | | - | |
21 | | - | F: Send + 'static, |
22 | | - | ^^^^ required by this bound in `spawn` |
0 commit comments