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

rustc: Handle struct patterns where the expected type is an enum #6200

Merged
merged 2 commits into from
May 4, 2013

Conversation

catamorphism
Copy link
Contributor

r? @nikomatsakis Previously, rustc would ICE if you matched on an enum-typed thing
with a structure pattern. Error out correctly. This will close #5358

Previously, rustc would ICE if you matched on an enum-typed thing
with a structure pattern. Error out correctly.
bors added a commit that referenced this pull request May 3, 2013
r? @nikomatsakis Previously, rustc would ICE if you matched on an enum-typed thing
with a structure pattern. Error out correctly. This will close #5358
@bors bors closed this May 4, 2013
@bors bors merged commit 32b3d3e into rust-lang:incoming May 4, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 3, 2020
…=phansch

fix the error-causing suggestion of 'borrowed_box'

Fixes rust-lang#3128

Fix the suggestion of 'borrowed_box', which causes a syntax error because it misses necessary parentheses.

---

changelog: Fix the error-causing suggestion of 'borrowed_box'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants