mirror of
https://gitee.com/openharmony/third_party_rust_proc-macro2
synced 2024-11-27 09:31:44 +00:00
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
error[E0277]: `proc_macro::Span` cannot be sent between threads safely
|
|
--> test-not-send.rs:5:21
|
|
|
|
|
5 | requires_send::<Span>();
|
|
| ^^^^ `proc_macro::Span` cannot be sent between threads safely
|
|
|
|
|
= help: within `Span`, the trait `Send` is not implemented for `proc_macro::Span`
|
|
= note: required because it appears within the type `Span`
|
|
= note: required because it appears within the type `Span`
|
|
note: required by a bound in `requires_send`
|
|
--> test-not-send.rs:4:25
|
|
|
|
|
4 | fn requires_send<T: Send>() {}
|
|
| ^^^^ required by this bound in `requires_send`
|
|
|
|
error[E0277]: `Rc<()>` cannot be sent between threads safely
|
|
--> test-not-send.rs:5:21
|
|
|
|
|
5 | requires_send::<Span>();
|
|
| ^^^^ `Rc<()>` cannot be sent between threads safely
|
|
|
|
|
= help: within `Span`, the trait `Send` is not implemented for `Rc<()>`
|
|
= note: required because it appears within the type `ProcMacroAutoTraits`
|
|
= note: required because it appears within the type `PhantomData<ProcMacroAutoTraits>`
|
|
= note: required because it appears within the type `Span`
|
|
note: required by a bound in `requires_send`
|
|
--> test-not-send.rs:4:25
|
|
|
|
|
4 | fn requires_send<T: Send>() {}
|
|
| ^^^^ required by this bound in `requires_send`
|