2014-12-23 10:57:44 +01:00
|
|
|
extern crate core;
|
|
|
|
|
2023-05-09 13:17:04 -04:00
|
|
|
fn assert_send<T: Send>() {}
|
|
|
|
|
|
|
|
fn test70() {
|
|
|
|
assert_send::<*mut isize>();
|
|
|
|
//~^ ERROR `*mut isize` cannot be sent between threads safely
|
|
|
|
}
|
2012-10-19 06:01:01 -07:00
|
|
|
|
2014-07-22 07:46:36 -04:00
|
|
|
fn test71<'a>() {
|
2015-01-08 21:54:35 +11:00
|
|
|
assert_send::<*mut &'a isize>();
|
2018-06-09 16:53:36 -07:00
|
|
|
//~^ ERROR `*mut &'a isize` cannot be sent between threads safely
|
2014-07-22 07:46:36 -04:00
|
|
|
}
|
|
|
|
|
2023-05-09 13:17:04 -04:00
|
|
|
fn main() {}
|