summaryrefslogtreecommitdiff
path: root/tests/ui/kindck/kindck-send-unsafe.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/kindck/kindck-send-unsafe.stderr')
-rw-r--r--tests/ui/kindck/kindck-send-unsafe.stderr23
1 files changed, 18 insertions, 5 deletions
diff --git a/tests/ui/kindck/kindck-send-unsafe.stderr b/tests/ui/kindck/kindck-send-unsafe.stderr
index ceed0053caa..f1a5054abbc 100644
--- a/tests/ui/kindck/kindck-send-unsafe.stderr
+++ b/tests/ui/kindck/kindck-send-unsafe.stderr
@@ -1,16 +1,29 @@
-error[E0277]: `*mut &'a isize` cannot be sent between threads safely
+error[E0277]: `*mut isize` cannot be sent between threads safely
--> $DIR/kindck-send-unsafe.rs:6:19
|
+LL | assert_send::<*mut isize>();
+ | ^^^^^^^^^^ `*mut isize` cannot be sent between threads safely
+ |
+ = help: the trait `Send` is not implemented for `*mut isize`
+note: required by a bound in `assert_send`
+ --> $DIR/kindck-send-unsafe.rs:3:19
+ |
+LL | fn assert_send<T: Send>() {}
+ | ^^^^ required by this bound in `assert_send`
+
+error[E0277]: `*mut &'a isize` cannot be sent between threads safely
+ --> $DIR/kindck-send-unsafe.rs:11:19
+ |
LL | assert_send::<*mut &'a isize>();
| ^^^^^^^^^^^^^^ `*mut &'a isize` cannot be sent between threads safely
|
= help: the trait `Send` is not implemented for `*mut &'a isize`
note: required by a bound in `assert_send`
- --> $DIR/kindck-send-unsafe.rs:3:18
+ --> $DIR/kindck-send-unsafe.rs:3:19
|
-LL | fn assert_send<T:Send>() { }
- | ^^^^ required by this bound in `assert_send`
+LL | fn assert_send<T: Send>() {}
+ | ^^^^ required by this bound in `assert_send`
-error: aborting due to previous error
+error: aborting due to 2 previous errors
For more information about this error, try `rustc --explain E0277`.