1 error[E0277]: `NoSync` cannot be shared between threads safely
2 --> $DIR/no_share-enum.rs:24:5
5 | ^^^ `NoSync` cannot be shared between threads safely
7 = help: within `Foo`, the trait `std::marker::Sync` is not implemented for `NoSync`
8 = note: required because it appears within the type `Foo`
9 note: required by `bar`
10 --> $DIR/no_share-enum.rs:20:1
12 LL | fn bar<T: Sync>(_: T) {}
13 | ^^^^^^^^^^^^^^^^^^^^^
15 error: aborting due to previous error
17 For more information about this error, try `rustc --explain E0277`.