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

Update syntax of where-clauses on associated types #1139

Merged
merged 2 commits into from Mar 14, 2022
Merged

Update syntax of where-clauses on associated types #1139

merged 2 commits into from Mar 14, 2022

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Mar 14, 2022

Closes #1071.

@dtolnay dtolnay changed the title Update syntax of where-clauses on type aliases Update syntax of where-clauses on associated types Mar 14, 2022
Previously:

    error[E0658]: multiple patterns in `if let` and `while let` are unstable (see issue 48215)
        --> src/item.rs:1213:13
         |
    1213 | /             if let WhereClauseLocation::BeforeEq | WhereClauseLocation::Both = where_clause_location
    1214 | |             {
    1215 | |                 generics.where_clause = input.parse()?;
    1216 | |             }
         | |_____________^

    error[E0658]: multiple patterns in `if let` and `while let` are unstable (see issue 48215)
        --> src/item.rs:1225:17
         |
    1225 | /                 if let WhereClauseLocation::AfterEq | WhereClauseLocation::Both =
    1226 | |                     where_clause_location
    1227 | |                 {
    1228 | |                     generics.where_clause = input.parse()?;
    1229 | |                 }
         | |_________________^
@dtolnay dtolnay merged commit 6a51d20 into master Mar 14, 2022
@dtolnay dtolnay deleted the where branch March 14, 2022 05:54
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.

Change syntax of where-clauses on associated types
1 participant