You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated code look ok, but I'm hitting that error which I'm not sure how to solve:
error[E0277]: the trait bound `anterofit::net::response::TryWithRaw<Foo<T>>: anterofit::net::FromResponse` is not satisfied
--> src/lib.rs:14:1
|
14 | service! {
| ^ the trait `anterofit::net::FromResponse` is not implemented for `anterofit::net::response::TryWithRaw<Foo<T>>`
|
= help: the following implementations were found:
<anterofit::net::response::TryWithRaw<T> as anterofit::net::FromResponse>
= note: this error originates in a macro outside of the current crate
I don't really understand because FromResponse is implemented for TryWithRaw<T>, so it should also work for TryWithRaw<Foo<T>> no?
The text was updated successfully, but these errors were encountered:
I've been working in a better solution for generics on the parse-generics branch, it's coming along okay so far. It shouldn't be too hard to extend it to generics on traits.
Hi,
I'd like to be able to write something like this:
I tried to tweak the
service!
macro. See little-dude@4fe785a (sorry if I did something horrible here, this is my first time dealing with macros).I tried it on a simple example (also avalaible on github in case you want to try it):
The generated code look ok, but I'm hitting that error which I'm not sure how to solve:
I don't really understand because
FromResponse
is implemented forTryWithRaw<T>
, so it should also work forTryWithRaw<Foo<T>>
no?The text was updated successfully, but these errors were encountered: