]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_share-enum.stderr
Rollup merge of #89468 - FabianWolff:issue-89358, r=jackh726
[rust.git] / src / test / ui / no_share-enum.stderr
1 error[E0277]: `NoSync` cannot be shared between threads safely
2   --> $DIR/no_share-enum.rs:14:5
3    |
4 LL |     bar(x);
5    |     ^^^ `NoSync` cannot be shared between threads safely
6    |
7    = help: within `Foo`, the trait `Sync` is not implemented for `NoSync`
8 note: required because it appears within the type `Foo`
9   --> $DIR/no_share-enum.rs:8:6
10    |
11 LL | enum Foo { A(NoSync) }
12    |      ^^^
13 note: required by a bound in `bar`
14   --> $DIR/no_share-enum.rs:10:11
15    |
16 LL | fn bar<T: Sync>(_: T) {}
17    |           ^^^^ required by this bound in `bar`
18
19 error: aborting due to previous error
20
21 For more information about this error, try `rustc --explain E0277`.