]> git.lizzy.rs Git - rust.git/blob - tests/ui/no_send-enum.stderr
Rollup merge of #107700 - jyn514:tools-builder, r=Mark-Simulacrum
[rust.git] / tests / ui / no_send-enum.stderr
1 error[E0277]: `NoSend` cannot be sent between threads safely
2   --> $DIR/no_send-enum.rs:16:9
3    |
4 LL |     bar(x);
5    |     --- ^ `NoSend` cannot be sent between threads safely
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: within `Foo`, the trait `Send` is not implemented for `NoSend`
10 note: required because it appears within the type `Foo`
11   --> $DIR/no_send-enum.rs:8:6
12    |
13 LL | enum Foo {
14    |      ^^^
15 note: required by a bound in `bar`
16   --> $DIR/no_send-enum.rs:12:11
17    |
18 LL | fn bar<T: Send>(_: T) {}
19    |           ^^^^ required by this bound in `bar`
20
21 error: aborting due to previous error
22
23 For more information about this error, try `rustc --explain E0277`.