fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely 2 --> $DIR/send-sync.rs:8:10 3 | 4LL | send(format_args!("{:?}", c)); 5 | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely 6 | | 7 | required by a bound introduced by this call 8 | 9 = help: within `[core::fmt::rt::Argument<'_>]`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque` 10 = note: required because it appears within the type `&core::fmt::rt::Opaque` 11note: required because it appears within the type `Argument<'_>` 12 --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL 13 = note: required because it appears within the type `[Argument<'_>]` 14 = note: required for `&[core::fmt::rt::Argument<'_>]` to implement `Send` 15note: required because it appears within the type `Arguments<'_>` 16 --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL 17note: required by a bound in `send` 18 --> $DIR/send-sync.rs:1:12 19 | 20LL | fn send<T: Send>(_: T) {} 21 | ^^^^ required by this bound in `send` 22 23error[E0277]: `core::fmt::rt::Opaque` cannot be shared between threads safely 24 --> $DIR/send-sync.rs:9:10 25 | 26LL | sync(format_args!("{:?}", c)); 27 | ---- ^^^^^^^^^^^^^^^^^^^^^^^ `core::fmt::rt::Opaque` cannot be shared between threads safely 28 | | 29 | required by a bound introduced by this call 30 | 31 = help: within `Arguments<'_>`, the trait `Sync` is not implemented for `core::fmt::rt::Opaque` 32 = note: required because it appears within the type `&core::fmt::rt::Opaque` 33note: required because it appears within the type `Argument<'_>` 34 --> $SRC_DIR/core/src/fmt/rt.rs:LL:COL 35 = note: required because it appears within the type `[Argument<'_>]` 36 = note: required because it appears within the type `&[Argument<'_>]` 37note: required because it appears within the type `Arguments<'_>` 38 --> $SRC_DIR/core/src/fmt/mod.rs:LL:COL 39note: required by a bound in `sync` 40 --> $DIR/send-sync.rs:2:12 41 | 42LL | fn sync<T: Sync>(_: T) {} 43 | ^^^^ required by this bound in `sync` 44 45error: aborting due to 2 previous errors 46 47For more information about this error, try `rustc --explain E0277`.