2016-12-12 22:51:40 +00:00
|
|
|
struct Foo {
|
|
|
|
bar: Bar
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Bar {
|
|
|
|
baz: Baz
|
|
|
|
}
|
|
|
|
|
|
|
|
struct Baz {
|
|
|
|
x: *const u8
|
|
|
|
}
|
|
|
|
|
|
|
|
fn is_send<T: Send>() { }
|
|
|
|
|
|
|
|
fn main() {
|
|
|
|
is_send::<Foo>();
|
2018-06-09 23:53:36 +00:00
|
|
|
//~^ ERROR `*const u8` cannot be sent between threads safely
|
2016-12-12 22:51:40 +00:00
|
|
|
}
|