]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0277]: `*const u8` cannot be sent between threads safely |
f2b60f7d | 2 | --> $DIR/E0277-2.rs:16:15 |
2c00a5a8 | 3 | | |
0531ce1d | 4 | LL | is_send::<Foo>(); |
f2b60f7d | 5 | | ^^^ `*const u8` cannot be sent between threads safely |
2c00a5a8 | 6 | | |
1b1a35ee | 7 | = help: within `Foo`, the trait `Send` is not implemented for `*const u8` |
cdc7bbd5 XL |
8 | note: required because it appears within the type `Baz` |
9 | --> $DIR/E0277-2.rs:9:8 | |
10 | | | |
11 | LL | struct Baz { | |
12 | | ^^^ | |
13 | note: required because it appears within the type `Bar` | |
14 | --> $DIR/E0277-2.rs:5:8 | |
15 | | | |
16 | LL | struct Bar { | |
17 | | ^^^ | |
18 | note: required because it appears within the type `Foo` | |
19 | --> $DIR/E0277-2.rs:1:8 | |
20 | | | |
21 | LL | struct Foo { | |
22 | | ^^^ | |
94222f64 XL |
23 | note: required by a bound in `is_send` |
24 | --> $DIR/E0277-2.rs:13:15 | |
25 | | | |
26 | LL | fn is_send<T: Send>() { } | |
27 | | ^^^^ required by this bound in `is_send` | |
2c00a5a8 XL |
28 | |
29 | error: aborting due to previous error | |
30 | ||
0531ce1d | 31 | For more information about this error, try `rustc --explain E0277`. |