]>
Commit | Line | Data |
---|---|---|
b7449926 | 1 | error[E0277]: `NoSync` cannot be shared between threads safely |
0731742a | 2 | --> $DIR/no_share-enum.rs:14:5 |
b7449926 | 3 | | |
e1599b0c | 4 | LL | fn bar<T: Sync>(_: T) {} |
72b1a166 | 5 | | ---- required by this bound in `bar` |
e1599b0c | 6 | ... |
b7449926 XL |
7 | LL | bar(x); |
8 | | ^^^ `NoSync` cannot be shared between threads safely | |
9 | | | |
72b1a166 | 10 | = help: within `Foo`, the trait `Sync` is not implemented for `NoSync` |
b7449926 | 11 | = note: required because it appears within the type `Foo` |
b7449926 XL |
12 | |
13 | error: aborting due to previous error | |
14 | ||
15 | For more information about this error, try `rustc --explain E0277`. |