mirror of
https://github.com/rust-lang/rust
synced 2024-09-05 16:57:03 +00:00
41e8d152dc
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
17 lines
593 B
Plaintext
17 lines
593 B
Plaintext
error[E0277]: `Foo` cannot be sent between threads safely
|
|
--> $DIR/extern-type-diag-not-similar.rs:20:19
|
|
|
|
|
LL | assert_send::<Foo>()
|
|
| ^^^ `Foo` cannot be sent between threads safely
|
|
|
|
|
= help: the trait `Send` is not implemented for `Foo`
|
|
note: required by a bound in `assert_send`
|
|
--> $DIR/extern-type-diag-not-similar.rs:17:19
|
|
|
|
|
LL | fn assert_send<T: Send + ?Sized>() {}
|
|
| ^^^^ required by this bound in `assert_send`
|
|
|
|
error: aborting due to 1 previous error
|
|
|
|
For more information about this error, try `rustc --explain E0277`.
|