Skip to content

Multiple comment slashes lead to error #10638

Closed
@vmx

Description

@vmx

When you have more than three slashes, you will get an expected item after attributes
error. This should be a special case and not expect a doc attribute. Here's code that reproduces the issue.

fn main() {
    //// x
}

The same it true for more than two stars is a multiline comment (/*** x */).

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