-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derive for newtypes with generics #19
Comments
It is implementing for impl _num_traits::Float for A {
fn nan() -> Self { A(<T as _num_traits::Float>::nan()) }
...
Yes, that should work. We should see if there are other derive crates we can use as an example of how to produce generic args and constraints properly. |
https://crates.io/crates/derive_more |
Any updates on this issue? |
Here,
float
will try to implement Float forT
, butT
is a parameter.Instead, it should:
The text was updated successfully, but these errors were encountered: