1 error[E0277]: `Foo` cannot be shared between threads safely
2 --> $DIR/no_share-struct.rs:12:9
5 | ^ `Foo` cannot be shared between threads safely
7 = help: the trait `Sync` is not implemented for `Foo`
8 note: required by a bound in `bar`
9 --> $DIR/no_share-struct.rs:8:11
11 LL | fn bar<T: Sync>(_: T) {}
12 | ^^^^ required by this bound in `bar`
14 error: aborting due to previous error
16 For more information about this error, try `rustc --explain E0277`.