Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error: unconstrained opaque type
- --> crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- ::: crates/teloxide-core/src/requests/json.rs:97:1
- |
- 97 | / req_future! {
- 98 | | def: |it: JsonRequest<U>| {
- 99 | | it.bot.execute_json(&it.payload)
- ... |
- 105 | | U::Output: DeserializeOwned,
- 106 | | }
- | |_- in this macro invocation
- |
- = note: `Send` must be used in combination with a concrete type within the same crate
- = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
- error: unconstrained opaque type
- --> crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- ::: crates/teloxide-core/src/requests/json.rs:108:1
- |
- 108 | / req_future! {
- 109 | | def: |it: &JsonRequest<U>| {
- 110 | | it.bot.execute_json(&it.payload)
- ... |
- 116 | | U::Output: DeserializeOwned,
- 117 | | }
- | |_- in this macro invocation
- |
- = note: `SendRef` must be used in combination with a concrete type within the same crate
- = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
- error: unconstrained opaque type
- --> crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- ::: crates/teloxide-core/src/requests/multipart.rs:108:1
- |
- 108 | / req_future! {
- 109 | | def: |it: MultipartRequest<U>| {
- 110 | | it.bot.execute_multipart(&mut {it.payload})
- ... |
- 116 | | U::Output: DeserializeOwned,
- 117 | | }
- | |_- in this macro invocation
- |
- = note: `Send` must be used in combination with a concrete type within the same crate
- = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
- error: unconstrained opaque type
- --> crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- |
- ::: crates/teloxide-core/src/requests/multipart.rs:119:1
- |
- 119 | / req_future! {
- 120 | | def: |it: &MultipartRequest<U>| {
- 121 | | it.bot.execute_multipart_ref(&it.payload)
- ... |
- 127 | | U::Output: DeserializeOwned,
- 128 | | }
- | |_- in this macro invocation
- |
- = note: `SendRef` must be used in combination with a concrete type within the same crate
- = note: this error originates in the macro `req_future` (in Nightly builds, run with -Z macro-backtrace for more info)
- error[E0308]: mismatched types
- --> crates/teloxide-core/src/requests/json.rs:99:9
- |
- 99 | it.bot.execute_json(&it.payload)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
- |
- ::: crates/teloxide-core/src/bot.rs:229:10
- |
- 229 | ) -> impl Future<Output = ResponseResult<P::Output>> + 'static
- | --------------------------------------------------------- the found future
- |
- ::: crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ------------------------------------------ the expected future
- ...
- 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
- | ------ expected `requests::json::inner0::Send<U>` because of return type
- |
- = note: distinct uses of `impl Trait` result in different opaque types
- error[E0308]: mismatched types
- --> crates/teloxide-core/src/requests/json.rs:110:9
- |
- 110 | it.bot.execute_json(&it.payload)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
- |
- ::: crates/teloxide-core/src/bot.rs:229:10
- |
- 229 | ) -> impl Future<Output = ResponseResult<P::Output>> + 'static
- | --------------------------------------------------------- the found future
- |
- ::: crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ------------------------------------------ the expected future
- ...
- 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
- | ------ expected `requests::json::inner1::SendRef<U>` because of return type
- |
- = note: distinct uses of `impl Trait` result in different opaque types
- error[E0308]: mismatched types
- --> crates/teloxide-core/src/requests/multipart.rs:110:9
- |
- 110 | it.bot.execute_multipart(&mut {it.payload})
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
- |
- ::: crates/teloxide-core/src/bot.rs:260:10
- |
- 260 | ) -> impl Future<Output = ResponseResult<P::Output>>
- | ----------------------------------------------- the found future
- |
- ::: crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ------------------------------------------ the expected future
- ...
- 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
- | ------ expected `requests::multipart::inner0::Send<U>` because of return type
- |
- = note: distinct uses of `impl Trait` result in different opaque types
- error[E0308]: mismatched types
- --> crates/teloxide-core/src/requests/multipart.rs:121:9
- |
- 121 | it.bot.execute_multipart_ref(&it.payload)
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected future, found a different future
- |
- ::: crates/teloxide-core/src/bot.rs:290:10
- |
- 290 | ) -> impl Future<Output = ResponseResult<P::Output>>
- | ----------------------------------------------- the found future
- |
- ::: crates/teloxide-core/src/local_macros.rs:36:33
- |
- 36 | $(where $($wh)*)? = impl ::core::future::Future<Output = $Out>;
- | ------------------------------------------ the expected future
- ...
- 39 | pub(crate) fn def<$T>($( $arg: $ArgTy ),*) -> $i<$T>
- | ------ expected `requests::multipart::inner1::SendRef<U>` because of return type
- |
- = note: distinct uses of `impl Trait` result in different opaque types
- For more information about this error, try `rustc --explain E0308`.
- error: could not compile `teloxide-core` (lib) due to 8 previous errors
- warning: build failed, waiting for other jobs to finish...
- error: could not compile `teloxide-core` (lib test) due to 8 previous errors
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement