1 error[E0277]: `NoSync` cannot be shared between threads safely
2 --> $DIR/mutable-enum-indirect.rs:17:9
5 | --- ^^ `NoSync` cannot be shared between threads safely
7 | required by a bound introduced by this call
9 = help: within `&Foo`, the trait `Sync` is not implemented for `NoSync`
10 note: required because it appears within the type `Foo`
11 --> $DIR/mutable-enum-indirect.rs:11:6
13 LL | enum Foo { A(NoSync) }
15 = note: required because it appears within the type `&Foo`
16 note: required by a bound in `bar`
17 --> $DIR/mutable-enum-indirect.rs:13:11
19 LL | fn bar<T: Sync>(_: T) {}
20 | ^^^^ required by this bound in `bar`
22 error: aborting due to previous error
24 For more information about this error, try `rustc --explain E0277`.