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