blob: 1808cef45f1848fe4cd0a19ceecdacb6cf819938 [file] [log] [blame]
error[E0277]: `Foo` cannot be sent between threads safely
--> $DIR/no_send-struct.rs:15:5
|
LL | fn bar<T: Send>(_: T) {}
| --------------------- required by `bar`
...
LL | bar(x);
| ^^^ `Foo` cannot be sent between threads safely
|
= help: the trait `std::marker::Send` is not implemented for `Foo`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0277`.