]> git.proxmox.com Git - rustc.git/blob - src/test/ui/no_send-enum.stderr
New upstream version 1.53.0+dfsg1
[rustc.git] / src / test / ui / no_send-enum.stderr
1 error[E0277]: `NoSend` cannot be sent between threads safely
2 --> $DIR/no_send-enum.rs:16:5
3 |
4 LL | fn bar<T: Send>(_: T) {}
5 | ---- required by this bound in `bar`
6 ...
7 LL | bar(x);
8 | ^^^ `NoSend` cannot be sent between threads safely
9 |
10 = help: within `Foo`, the trait `Send` is not implemented for `NoSend`
11 note: required because it appears within the type `Foo`
12 --> $DIR/no_send-enum.rs:8:6
13 |
14 LL | enum Foo {
15 | ^^^
16
17 error: aborting due to previous error
18
19 For more information about this error, try `rustc --explain E0277`.