blob: eb1f2a549b16b504f51e919880a1054daa9e25e6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
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() {}
|