rust/tests/ui/error-codes/E0277-2.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
219 B
Rust
Raw Normal View History

2016-12-13 06:51:40 +08:00
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
2016-12-13 06:51:40 +08:00
}