Skip to content

Conversation

@ChayimFriedman2
Copy link
Contributor

@ChayimFriedman2 ChayimFriedman2 commented Nov 23, 2025

The type of a range pattern is the element's type, not the range type, unlike a range expression.

Fixes #21112.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 23, 2025
The type of a range pattern is the element's type, not the range type, unlike a range expression.
@Veykril
Copy link
Member

Veykril commented Nov 23, 2025

That would explain the weird issues I saw I think 🤦 sorry and thanks

@Veykril Veykril added this pull request to the merge queue Nov 23, 2025
Merged via the queue into rust-lang:master with commit b2a6245 Nov 23, 2025
15 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 23, 2025
@ChayimFriedman2 ChayimFriedman2 deleted the byte-range branch November 23, 2025 11:47
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.

Matching against byte ranges produces error

3 participants