]>
Commit | Line | Data |
---|---|---|
b7449926 XL |
1 | error[E0277]: `NoSync` cannot be shared between threads safely |
2 | --> $DIR/no_share-enum.rs:24:5 | |
3 | | | |
4 | LL | bar(x); | |
5 | | ^^^ `NoSync` cannot be shared between threads safely | |
6 | | | |
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 | |
11 | | | |
12 | LL | fn bar<T: Sync>(_: T) {} | |
13 | | ^^^^^^^^^^^^^^^^^^^^^ | |
14 | ||
15 | error: aborting due to previous error | |
16 | ||
17 | For more information about this error, try `rustc --explain E0277`. |