Skip to content
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

Inherited traits don't work in trait objects #6069

Closed
Sodel-the-Vociferous opened this issue Apr 26, 2013 · 1 comment
Closed

Inherited traits don't work in trait objects #6069

Sodel-the-Vociferous opened this issue Apr 26, 2013 · 1 comment

Comments

@Sodel-the-Vociferous
Copy link
Contributor

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() {
}
@jdm
Copy link
Contributor

jdm commented Apr 26, 2013

Duplicate of #4100.

@jdm jdm closed this as completed Apr 26, 2013
flip1995 pushed a commit to flip1995/rust that referenced this issue Sep 24, 2020
…-macro, r=Manishearth

Forbid redundant_pattern_matching triggering in macros

fixes rust-lang#6065

changelog: forbid redundant_pattern_matching triggering in macros
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants