Skip to content

Semicolon insertion breaks on complex function declaration #11005

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
lnicola opened this issue Dec 14, 2021 · 0 comments · Fixed by #14103
Closed

Semicolon insertion breaks on complex function declaration #11005

lnicola opened this issue Dec 14, 2021 · 0 comments · Fixed by #14103
Labels
C-bug Category: bug S-unactionable Issue requires feedback, design decisions or is blocked on other work

Comments

@lnicola
Copy link
Member

lnicola commented Dec 14, 2021

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.

@lnicola lnicola added S-unactionable Issue requires feedback, design decisions or is blocked on other work C-bug Category: bug labels Dec 14, 2021
@bors bors closed this as completed in 5341a6f Feb 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-unactionable Issue requires feedback, design decisions or is blocked on other work
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant