Skip to content

Semicolon insertion breaks on complex function declaration #11005

Closed
@lnicola

Description

@lnicola

Given this code,

fn difference(counts: &HashMap<(char, char), u64>, last: char) -> u64 {
    // ...
}

try to turn the function into a closure. You'll get:

let difference = (counts: &HashMap<(char, char);, u64>, last: char) -> u64 {

Probably unactionable given the incorrect code, though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugS-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions