]> git.lizzy.rs Git - rust.git/blob - src/test/ui/error-codes/E0277-2.stderr
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[rust.git] / src / test / ui / error-codes / E0277-2.stderr
1 error[E0277]: `*const u8` cannot be sent between threads safely
2   --> $DIR/E0277-2.rs:16:5
3    |
4 LL |     is_send::<Foo>();
5    |     ^^^^^^^^^^^^^^ `*const u8` cannot be sent between threads safely
6    |
7    = help: within `Foo`, the trait `Send` is not implemented for `*const u8`
8 note: required because it appears within the type `Baz`
9   --> $DIR/E0277-2.rs:9:8
10    |
11 LL | struct Baz {
12    |        ^^^
13 note: required because it appears within the type `Bar`
14   --> $DIR/E0277-2.rs:5:8
15    |
16 LL | struct Bar {
17    |        ^^^
18 note: required because it appears within the type `Foo`
19   --> $DIR/E0277-2.rs:1:8
20    |
21 LL | struct Foo {
22    |        ^^^
23 note: required by a bound in `is_send`
24   --> $DIR/E0277-2.rs:13:15
25    |
26 LL | fn is_send<T: Send>() { }
27    |               ^^^^ required by this bound in `is_send`
28
29 error: aborting due to previous error
30
31 For more information about this error, try `rustc --explain E0277`.