diff options
Diffstat (limited to 'tests/ui/kindck/kindck-send-unsafe.rs')
-rw-r--r-- | tests/ui/kindck/kindck-send-unsafe.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui/kindck/kindck-send-unsafe.rs b/tests/ui/kindck/kindck-send-unsafe.rs new file mode 100644 index 000000000..4ef30a71f --- /dev/null +++ b/tests/ui/kindck/kindck-send-unsafe.rs @@ -0,0 +1,11 @@ +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() { +} |