2018-02-07 21:35:35 -06:00
|
|
|
error[E0277]: the trait bound `*const u8: std::marker::Send` is not satisfied in `Foo`
|
|
|
|
--> $DIR/E0277-2.rs:26:5
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | is_send::<Foo>();
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^ `*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
|
|
|
|
|
|
2018-02-22 18:42:32 -06:00
|
|
|
LL | fn is_send<T: Send>() { }
|
2018-02-07 21:35:35 -06:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
2018-03-03 08:59:40 -06:00
|
|
|
For more information about this error, try `rustc --explain E0277`.
|