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
This doesn't compile as T is only declared on the method but already used in the impl header. We could make this specific thing work by moving T: Display to the impl header.
But it's questionable whether we should support generic functions at all. impl Trait in argument position could be complicated. We would have to transform impl Trait generics into standard generics. If we would only support standard generics, that would... be kinda sad.
Since we never claimed to support generics for Fn* types, I won't classify this as bug. But it would be nice to support in the future.
The text was updated successfully, but these errors were encountered:
Currently, this:
Generates this:
This doesn't compile as
T
is only declared on the method but already used in the impl header. We could make this specific thing work by movingT: Display
to the impl header.But it's questionable whether we should support generic functions at all.
impl Trait
in argument position could be complicated. We would have to transformimpl Trait
generics into standard generics. If we would only support standard generics, that would... be kinda sad.Since we never claimed to support generics for
Fn*
types, I won't classify this as bug. But it would be nice to support in the future.The text was updated successfully, but these errors were encountered: