Skip to content

Inherited traits don't work in trait objects #6069

@Sodel-the-Vociferous

Description

@Sodel-the-Vociferous
trait MyTY {
    fn my_y(&self) -> uint;
}

trait MyTXY: MyTY {
    fn my_x(&self) -> uint;
}

fn bar(mt: &MyTXY) {
    mt.my_x();
    mt.my_y();
}

fn main() {
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions