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