rust/tests/ui/kindck/kindck-send-unsafe.rs
2023-01-11 09:32:08 +00:00

12 lines
192 B
Rust

extern crate core;
fn assert_send<T:Send>() { }
fn test71<'a>() {
assert_send::<*mut &'a isize>();
//~^ ERROR `*mut &'a isize` cannot be sent between threads safely
}
fn main() {
}