rust/tests/ui/no_share-struct.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
571 B
Plaintext
Raw Normal View History

2018-08-08 12:28:26 +00:00
error[E0277]: `Foo` cannot be shared between threads safely
--> $DIR/no_share-struct.rs:12:9
2018-08-08 12:28:26 +00:00
|
LL | bar(x);
| --- ^ `Foo` cannot be shared between threads safely
| |
| required by a bound introduced by this call
2018-08-08 12:28:26 +00:00
|
= help: the trait `Sync` is not implemented for `Foo`
note: required by a bound in `bar`
--> $DIR/no_share-struct.rs:8:11
|
LL | fn bar<T: Sync>(_: T) {}
| ^^^^ required by this bound in `bar`
2018-08-08 12:28:26 +00:00
error: aborting due to 1 previous error
2018-08-08 12:28:26 +00:00
For more information about this error, try `rustc --explain E0277`.