Advertisement
Guest User

Untitled

a guest
Mar 29th, 2025
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.33 KB | None | 0 0
  1. error: unconstrained opaque type
  2. --> crates/teloxide-core/src/local_macros.rs:36:33
  3. |
  4. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  5. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. |
  7. ::: crates/teloxide-core/src/requests/json.rs:97:1
  8. |
  9. 97 | / req_future! {
  10. 98 | | def: |it: JsonRequest<U>| {
  11. 99 | | it.bot.execute_json(&it.payload)
  12. ... |
  13. 105 | | U::Output: DeserializeOwned,
  14. 106 | | }
  15. | |_- in this macro invocation
  16. |
  17. = note: `Send` must be used in combination with a concrete type within the same crate
  18. = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
  19.  
  20. error: unconstrained opaque type
  21. --> crates/teloxide-core/src/local_macros.rs:36:33
  22. |
  23. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  24. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  25. |
  26. ::: crates/teloxide-core/src/requests/json.rs:108:1
  27. |
  28. 108 | / req_future! {
  29. 109 | | def: |it: &JsonRequest<U>| {
  30. 110 | | it.bot.execute_json(&it.payload)
  31. ... |
  32. 116 | | U::Output: DeserializeOwned,
  33. 117 | | }
  34. | |_- in this macro invocation
  35. |
  36. = note: `SendRef` must be used in combination with a concrete type within the same crate
  37. = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
  38.  
  39. error: unconstrained opaque type
  40. --> crates/teloxide-core/src/local_macros.rs:36:33
  41. |
  42. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  43. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  44. |
  45. ::: crates/teloxide-core/src/requests/multipart.rs:108:1
  46. |
  47. 108 | / req_future! {
  48. 109 | | def: |it: MultipartRequest<U>| {
  49. 110 | | it.bot.execute_multipart(&mut {it.payload})
  50. ... |
  51. 116 | | U::Output: DeserializeOwned,
  52. 117 | | }
  53. | |_- in this macro invocation
  54. |
  55. = note: `Send` must be used in combination with a concrete type within the same crate
  56. = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
  57.  
  58. error: unconstrained opaque type
  59. --> crates/teloxide-core/src/local_macros.rs:36:33
  60. |
  61. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  62. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  63. |
  64. ::: crates/teloxide-core/src/requests/multipart.rs:119:1
  65. |
  66. 119 | / req_future! {
  67. 120 | | def: |it: &MultipartRequest<U>| {
  68. 121 | | it.bot.execute_multipart_ref(&it.payload)
  69. ... |
  70. 127 | | U::Output: DeserializeOwned,
  71. 128 | | }
  72. | |_- in this macro invocation
  73. |
  74. = note: `SendRef` must be used in combination with a concrete type within the same crate
  75. = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
  76.  
  77. error[E0308]: mismatched types
  78. --> crates/teloxide-core/src/requests/json.rs:99:9
  79. |
  80. 99 | it.bot.execute_json(&it.payload)
  81. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
  82. |
  83. ::: crates/teloxide-core/src/bot.rs:229:10
  84. |
  85. 229 | ) -> impl Future<Output = ResponseResult<P::Output>> + 'static
  86. | --------------------------------------------------------- the found future
  87. |
  88. ::: crates/teloxide-core/src/local_macros.rs:36:33
  89. |
  90. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  91. | ------------------------------------------ the expected future
  92. ...
  93. 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
  94. | ------ expected `requests::json::inner0::Send<U>` because of return type
  95. |
  96. = note: distinct uses of `impl Trait` result in different opaque types
  97.  
  98. error[E0308]: mismatched types
  99. --> crates/teloxide-core/src/requests/json.rs:110:9
  100. |
  101. 110 | it.bot.execute_json(&it.payload)
  102. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
  103. |
  104. ::: crates/teloxide-core/src/bot.rs:229:10
  105. |
  106. 229 | ) -> impl Future<Output = ResponseResult<P::Output>> + 'static
  107. | --------------------------------------------------------- the found future
  108. |
  109. ::: crates/teloxide-core/src/local_macros.rs:36:33
  110. |
  111. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  112. | ------------------------------------------ the expected future
  113. ...
  114. 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
  115. | ------ expected `requests::json::inner1::SendRef<U>` because of return type
  116. |
  117. = note: distinct uses of `impl Trait` result in different opaque types
  118.  
  119. error[E0308]: mismatched types
  120. --> crates/teloxide-core/src/requests/multipart.rs:110:9
  121. |
  122. 110 | it.bot.execute_multipart(&mut {it.payload})
  123. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
  124. |
  125. ::: crates/teloxide-core/src/bot.rs:260:10
  126. |
  127. 260 | ) -> impl Future<Output = ResponseResult<P::Output>>
  128. | ----------------------------------------------- the found future
  129. |
  130. ::: crates/teloxide-core/src/local_macros.rs:36:33
  131. |
  132. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  133. | ------------------------------------------ the expected future
  134. ...
  135. 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
  136. | ------ expected `requests::multipart::inner0::Send<U>` because of return type
  137. |
  138. = note: distinct uses of `impl Trait` result in different opaque types
  139.  
  140. error[E0308]: mismatched types
  141. --> crates/teloxide-core/src/requests/multipart.rs:121:9
  142. |
  143. 121 | it.bot.execute_multipart_ref(&it.payload)
  144. | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
  145. |
  146. ::: crates/teloxide-core/src/bot.rs:290:10
  147. |
  148. 290 | ) -> impl Future<Output = ResponseResult<P::Output>>
  149. | ----------------------------------------------- the found future
  150. |
  151. ::: crates/teloxide-core/src/local_macros.rs:36:33
  152. |
  153. 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
  154. | ------------------------------------------ the expected future
  155. ...
  156. 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
  157. | ------ expected `requests::multipart::inner1::SendRef<U>` because of return type
  158. |
  159. = note: distinct uses of `impl Trait` result in different opaque types
  160.  
  161. For more information about this error, try `rustc --explain E0308`.
  162. error: could not compile `teloxide-core` (lib) due to 8 previous errors
  163. warning: build failed, waiting for other jobs to finish...
  164. error: could not compile `teloxide-core` (lib test) due to 8 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement