Skip to content
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

Alt arms with block structured expressions shouldn't require commas? #3076

Closed
brson opened this issue Aug 1, 2012 · 1 comment
Closed

Alt arms with block structured expressions shouldn't require commas? #3076

brson opened this issue Aug 1, 2012 · 1 comment
Assignees
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone

Comments

@brson
Copy link
Contributor

brson commented Aug 1, 2012

alt foo {
    true => do spawn {
        baz
    } // currently need a comma here
    false => ()
}
@ghost ghost assigned brson Aug 1, 2012
@brson
Copy link
Contributor Author

brson commented Aug 5, 2012

Done.

@brson brson closed this as completed Aug 5, 2012
celinval pushed a commit to celinval/rust-dev that referenced this issue Jun 4, 2024
This is a follow-up on rust-lang#3063 that adds a test with multiple crates to
make sure this scenario is correctly handled and that Kani reports the
bug.

By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend Area: Compiler frontend (errors, parsing and HIR) C-cleanup Category: PRs that clean code up or issues documenting cleanup. E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

1 participant