mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-15 07:00:47 +00:00
19 lines
219 B
Rust
19 lines
219 B
Rust
struct Foo {
|
|
bar: Bar
|
|
}
|
|
|
|
struct Bar {
|
|
baz: Baz
|
|
}
|
|
|
|
struct Baz {
|
|
x: *const u8
|
|
}
|
|
|
|
fn is_send<T: Send>() { }
|
|
|
|
fn main() {
|
|
is_send::<Foo>();
|
|
//~^ ERROR `*const u8` cannot be sent between threads safely
|
|
}
|