fork/rust

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

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
814 B24 linesraw
1error[E0277]: `NoSync` cannot be shared between threads safely
2  --> $DIR/mutable-enum-indirect.rs:17:9
3   |
4LL |     bar(&x);
5   |     --- ^^ `NoSync` cannot be shared between threads safely
6   |     |
7   |     required by a bound introduced by this call
8   |
9   = help: within `&Foo`, the trait `Sync` is not implemented for `NoSync`
10note: required because it appears within the type `Foo`
11  --> $DIR/mutable-enum-indirect.rs:11:6
12   |
13LL | enum Foo { A(NoSync) }
14   |      ^^^
15   = note: required because it appears within the type `&Foo`
16note: required by a bound in `bar`
17  --> $DIR/mutable-enum-indirect.rs:13:11
18   |
19LL | fn bar<T: Sync>(_: T) {}
20   |           ^^^^ required by this bound in `bar`
21
22error: aborting due to previous error
23
24For more information about this error, try `rustc --explain E0277`.