Skip to content

Unresolved import error on struct vs unite-like struct #27695

Closed

Description

@malbarbo
pub use m::A;

mod m {
    use super::*;
    pub struct A;
    //pub struct A {
    //    a: bool
    //}
}

The code compile with first definition of A, but not the second.

This may be related to #26873.

Activity

  1. mitaa commented on Aug 12, 2015

    @mitaa
    Contributor

    This compiles on playpen nightly.

  2. steveklabnik commented on Aug 12, 2015

    @steveklabnik
    Contributor

    Yes, it fails on stable and beta, but works on nightly. Therefore, I'm tempted to close it, as it's seemingly already fixed, but let's see if anyone else can weigh in on the exact details.

  3. alexcrichton commented on Aug 13, 2015

    @alexcrichton
    Member

    I think this was either fixed in #27547 or #27439, so closing as working (yay!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions