Skip to content

Syntax error on public tuples referencing super #5902

@Kixiron

Description

@Kixiron

These two snippets show syntax errors when they aren't

pub struct A;

mod module {
    pub struct B(pub (super::A,));
}
pub struct A;

mod module {
    pub struct B(pub (super::A));
}

image

Hovering over the errors gives Syntax Error: expected R_PAREN for the first squiggle and both Syntax Error: expected SEMICOLON and two separate Syntax Error: expected an item for the second

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-actionableSomeone could pick this issue up and work on it right now

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions