Skip to content

Private traits can be implemented cross-crate #11593

Description

@sfackler

This should not compile but it does.

test.rs:

trait Foo {
    fn foo();
}

test2.rs:

extern mod test;

struct Bar;

impl test::Foo for Bar {
    fn foo() {}
}

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