]> git.lizzy.rs Git - rust.git/blob - src/test/ui/no_share-struct.stderr
Auto merge of #75406 - mati865:mingw-aslr, r=Mark-Simulacrum
[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 | fn bar<T: Sync>(_: T) {}
5    |           ---- required by this bound in `bar`
6 ...
7 LL |     bar(x);
8    |         ^ `Foo` cannot be shared between threads safely
9    |
10    = help: the trait `Sync` is not implemented for `Foo`
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0277`.