Skip to content

Delegate method assist doesn't fix up Self references #14485

Closed
@Veykril

Description

@Veykril
struct Struct {
    field$0: u8,
}

produces

impl Struct {
    pub fn saturating_mul(self,rhs:Self) ->Self {
        self.field.saturating_mul(rhs)
    }
}

when it should produce

impl Struct {
    pub fn saturating_mul(self,rhs:u8) ->u8{
        self.field.saturating_mul(rhs)
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions