blob: bbe04cfc6e16d9ceb708e684a32915ddd719f400 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
error[E0277]: the trait bound `*const u8: std::marker::Send` is not satisfied in `Foo`
--> $DIR/E0277-2.rs:26:5
|
LL | is_send::<Foo>();
| ^^^^^^^^^^^^^^ `*const u8` cannot be sent between threads safely
|
= help: within `Foo`, the trait `std::marker::Send` is not implemented for `*const u8`
= note: required because it appears within the type `Baz`
= note: required because it appears within the type `Bar`
= note: required because it appears within the type `Foo`
note: required by `is_send`
--> $DIR/E0277-2.rs:23:1
|
LL | fn is_send<T: Send>() { }
| ^^^^^^^^^^^^^^^^^^^^^
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.
|