-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Can't mix generic and specific literals in match arms #16745
Comments
fn main() {
const X: u8 = 0;
match 0u8 {
X => { },
1u8 => { },
_ => { }
}
} |
@jakub- this actually appears to be currently fixed to me; I don't doubt that your PR has value, but can you explain which of the cases reported on this ticket is currently failing for you? |
@pnkfelix Ah, I hadn't actually checked if this issue was still valid! But it seems you're right and I don't think my PR is even relevant after the recent changes to constant evaluation. Closing, thanks. |
Well, sorry, FWIW, this A-needstest. |
…ing, r=Veykril fix: Don't escape `\` and `$` in "Extract format expressions" assist Fixes rust-lang#16745
For example
The text was updated successfully, but these errors were encountered: