]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_send-enum.stderr
Rollup merge of #53317 - estebank:abolish-ice, r=oli-obk
[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:26:5
3    |
4 LL |     bar(x);
5    |     ^^^ `NoSend` cannot be sent between threads safely
6    |
7    = help: within `Foo`, the trait `std::marker::Send` is not implemented for `NoSend`
8    = note: required because it appears within the type `Foo`
9 note: required by `bar`
10   --> $DIR/no_send-enum.rs:22:1
11    |
12 LL | fn bar<T: Send>(_: T) {}
13    | ^^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
17 For more information about this error, try `rustc --explain E0277`.