1 error[E0277]: `NoSend` cannot be sent between threads safely
2 --> $DIR/no_send-enum.rs:16:5
5 | ^^^ `NoSend` cannot be sent between threads safely
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:12:1
12 LL | fn bar<T: Send>(_: T) {}
13 | ^^^^^^^^^^^^^^^^^^^^^
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.