mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
16 lines
307 B
Rust
16 lines
307 B
Rust
extern crate core;
|
|
|
|
fn assert_send<T: Send>() {}
|
|
|
|
fn test70() {
|
|
assert_send::<*mut isize>();
|
|
//~^ ERROR `*mut isize` cannot be sent between threads safely
|
|
}
|
|
|
|
fn test71<'a>() {
|
|
assert_send::<*mut &'a isize>();
|
|
//~^ ERROR `*mut &'a isize` cannot be sent between threads safely
|
|
}
|
|
|
|
fn main() {}
|