Skip to content

Const generic parameter following a comment gets corrupted #4263

Description

@yvt
fn func_name<
    // AAAA
    const BBBB: usize,
    /* CCCC */
    const DDDD: usize,
>() {}

Playground Link

Output:

fn func_name<
    // AAAA
    const
    const BBBB: usize,
    /* CCCC */
    const
    const DDDD: usize,
>() {
}

Version: 1.4.15-nightly (2020-05-19 aedff61)

Activity

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

    1x-backport:completedC-bugCategory: this is a bug; use also I-* labels for specific bug kinds, e.g. I-non-idempotency or I-ICE

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions