]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_share-struct.stderr
Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23
[rust.git] / src / test / ui / no_share-struct.stderr
1 error[E0277]: `Foo` cannot be shared between threads safely
2   --> $DIR/no_share-struct.rs:12:9
3    |
4 LL |     bar(x);
5    |     --- ^ `Foo` cannot be shared between threads safely
6    |     |
7    |     required by a bound introduced by this call
8    |
9    = help: the trait `Sync` is not implemented for `Foo`
10 note: required by a bound in `bar`
11   --> $DIR/no_share-struct.rs:8:11
12    |
13 LL | fn bar<T: Sync>(_: T) {}
14    |           ^^^^ required by this bound in `bar`
15
16 error: aborting due to previous error
17
18 For more information about this error, try `rustc --explain E0277`.