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