]> git.proxmox.com Git - rustc.git/blame - src/test/ui/error-codes/E0277-2.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / error-codes / E0277-2.stderr
CommitLineData
8faf50e0 1error[E0277]: `*const u8` cannot be sent between threads safely
f2b60f7d 2 --> $DIR/E0277-2.rs:16:15
2c00a5a8 3 |
0531ce1d 4LL | is_send::<Foo>();
f2b60f7d 5 | ^^^ `*const u8` cannot be sent between threads safely
2c00a5a8 6 |
1b1a35ee 7 = help: within `Foo`, the trait `Send` is not implemented for `*const u8`
cdc7bbd5
XL
8note: required because it appears within the type `Baz`
9 --> $DIR/E0277-2.rs:9:8
10 |
11LL | struct Baz {
12 | ^^^
13note: required because it appears within the type `Bar`
14 --> $DIR/E0277-2.rs:5:8
15 |
16LL | struct Bar {
17 | ^^^
18note: required because it appears within the type `Foo`
19 --> $DIR/E0277-2.rs:1:8
20 |
21LL | struct Foo {
22 | ^^^
94222f64
XL
23note: required by a bound in `is_send`
24 --> $DIR/E0277-2.rs:13:15
25 |
26LL | fn is_send<T: Send>() { }
27 | ^^^^ required by this bound in `is_send`
2c00a5a8
XL
28
29error: aborting due to previous error
30
0531ce1d 31For more information about this error, try `rustc --explain E0277`.