]> git.proxmox.com Git - rustc.git/blame - src/test/ui/no_share-enum.stderr
New upstream version 1.32.0+dfsg1
[rustc.git] / src / test / ui / no_share-enum.stderr
CommitLineData
b7449926
XL
1error[E0277]: `NoSync` cannot be shared between threads safely
2 --> $DIR/no_share-enum.rs:24:5
3 |
4LL | bar(x);
5 | ^^^ `NoSync` cannot be shared between threads safely
6 |
7 = help: within `Foo`, the trait `std::marker::Sync` is not implemented for `NoSync`
8 = note: required because it appears within the type `Foo`
9note: required by `bar`
10 --> $DIR/no_share-enum.rs:20:1
11 |
12LL | fn bar<T: Sync>(_: T) {}
13 | ^^^^^^^^^^^^^^^^^^^^^
14
15error: aborting due to previous error
16
17For more information about this error, try `rustc --explain E0277`.