fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.1 KiB29 linesraw
1error[E0277]: `*mut isize` cannot be sent between threads safely
2  --> $DIR/kindck-send-unsafe.rs:6:19
3   |
4LL |     assert_send::<*mut isize>();
5   |                   ^^^^^^^^^^ `*mut isize` cannot be sent between threads safely
6   |
7   = help: the trait `Send` is not implemented for `*mut isize`
8note: required by a bound in `assert_send`
9  --> $DIR/kindck-send-unsafe.rs:3:19
10   |
11LL | fn assert_send<T: Send>() {}
12   |                   ^^^^ required by this bound in `assert_send`
13
14error[E0277]: `*mut &'a isize` cannot be sent between threads safely
15  --> $DIR/kindck-send-unsafe.rs:11:19
16   |
17LL |     assert_send::<*mut &'a isize>();
18   |                   ^^^^^^^^^^^^^^ `*mut &'a isize` cannot be sent between threads safely
19   |
20   = help: the trait `Send` is not implemented for `*mut &'a isize`
21note: required by a bound in `assert_send`
22  --> $DIR/kindck-send-unsafe.rs:3:19
23   |
24LL | fn assert_send<T: Send>() {}
25   |                   ^^^^ required by this bound in `assert_send`
26
27error: aborting due to 2 previous errors
28
29For more information about this error, try `rustc --explain E0277`.