Skip to content

overlapping instances should be detected for inherited traits #3982

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
brson opened this issue Nov 16, 2012 · 1 comment
Closed

overlapping instances should be detected for inherited traits #3982

brson opened this issue Nov 16, 2012 · 1 comment
Assignees
Milestone

Comments

@brson
Copy link
Contributor

brson commented Nov 16, 2012

A simple example

// error-pattern: what

trait Foo {
    fn f();
}

trait Bar : Foo {
    fn g();
}

struct A {
    x: int
}

impl A : Bar {
    fn g() { }
    fn f() { }
}

impl A : Foo {
    fn f() { }
}

fn main() {
}
@ghost ghost assigned brson Nov 16, 2012
@brson
Copy link
Contributor Author

brson commented Nov 29, 2012

This is no longer true because an impl of Bar is not an impl of Foo

@brson brson closed this as completed Nov 29, 2012
RalfJung pushed a commit to RalfJung/rust that referenced this issue Oct 27, 2024
epoll_ctl: throw unsupported error on unsupported opcode

`@tiif` this is a somewhat suspicious "return -1" without setting the `errno` -- what is the reasoning behind that?

Throwing a clear error seems better to me.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant