Skip to content

Derive for newtypes with generics #19

Open
@adiba

Description

@adiba
#[derive(Float)]
struct A<T:Float>(T);

Here, float will try to implement Float for T, but T is a parameter.
Instead, it should:

impl<T:Float> Float for A<T>{...}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions