We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#![feature(slice_patterns)] fn main() { match b"123" { [0, ..] => {} _ => {} } }
As of rustfmt 0.99.1-nightly (da17b68 2018-08-04), formatting produces the following diff which I believe is less readable than the original:
- [0, ..] => {} + [0, _..] => {}
The text was updated successfully, but these errors were encountered:
Why is _.. even accepted syntax? It is not allowed in normal pattern matching:
_..
let (a, _..) = (1, 2 ,3);
does not even compile.
Sorry, something went wrong.
No branches or pull requests
As of rustfmt 0.99.1-nightly (da17b68 2018-08-04), formatting produces the following diff which I believe is less readable than the original:
The text was updated successfully, but these errors were encountered: