Skip to content

Commit 1e5f565

Browse files
Bless output from ubuntu
1 parent 8079352 commit 1e5f565

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed
Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,18 @@
11
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`
1010
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+
| |_____^
1818
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

Comments
 (0)