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: allow @ as-patterns to move when the sub-pattern contains no bindings. #8508

Closed
wants to merge 1 commit into from

Conversation

huonw
Copy link
Member

@huonw huonw commented Aug 14, 2013

A pattern like foo @ Foo(Bar(*), _) should be legal, even if foo moves,
since the subpatterns are purely structural.

Fixes #3761.

…indings.

A pattern like `foo @ Foo(Bar(*), _)` should be legal, even if `foo` moves,
since the subpatterns are purely structural.

Fixes rust-lang#3761.
@huonw
Copy link
Member Author

huonw commented Aug 15, 2013

Whoops, I accidentally rebased #8490 on top of this branch and so this landed as 58021be.

@huonw huonw closed this Aug 15, 2013
@huonw huonw deleted the 3761 branch November 25, 2013 10:57
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 7, 2022
Check if lhs < rhs in modulos in `identity_op`

Fixes rust-lang#8508

changelog: [`identity_op`] now checks for modulos, e.g. `1 % 3`
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.

Incorrect 'cannot bind by-move with sub-bindings` error
2 participants