fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #67350 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum73528e339aa

1.40.0
599 B16 linesraw
1error[E0277]: `NoSync` cannot be shared between threads safely
2  --> $DIR/mutable-enum-indirect.rs:17:5
3   |
4LL | fn bar<T: Sync>(_: T) {}
5   |    ---    ---- required by this bound in `bar`
6...
7LL |     bar(&x);
8   |     ^^^ `NoSync` cannot be shared between threads safely
9   |
10   = help: within `&Foo`, the trait `std::marker::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
14error: aborting due to previous error
15
16For more information about this error, try `rustc --explain E0277`.