]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-enum.stderr
Move generic error message to separate branches
[rust.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 |     bar(x);
5    |     ^^^ `NoSend` cannot be sent between threads safely
6    |
7    = help: within `Foo`, the trait `Send` is not implemented for `NoSend`
8 note: required because it appears within the type `Foo`
9   --> $DIR/no_send-enum.rs:8:6
10    |
11 LL | enum Foo {
12    |      ^^^
13 note: required by a bound in `bar`
14   --> $DIR/no_send-enum.rs:12:11
15    |
16 LL | fn bar<T: Send>(_: T) {}
17    |           ^^^^ required by this bound in `bar`
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.