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
..X
..=X
#![feature(half_open_range_patterns)]
#![feature(half_open_range_patterns_in_slices)]
https://github.com/rust-lang/rust/blob/be01dabfefd2daa4574b974f571c7852085d60cb/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs#L42C9-L42C25
match x { &[1..] => {} _ => {} }
Syn currently rejects this syntax.
error: range pattern is not allowed unparenthesized inside slice pattern --> tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs:42:12 | 42 | &[1..] => false, | ^^
The text was updated successfully, but these errors were encountered:
No branches or pull requests
..X
, and..=X
(#![feature(half_open_range_patterns)]
) rust-lang/rust#67264#![feature(half_open_range_patterns_in_slices)]
https://github.com/rust-lang/rust/blob/be01dabfefd2daa4574b974f571c7852085d60cb/tests/ui/consts/miri_unleashed/const_refers_to_static_cross_crate.rs#L42C9-L42C25
Syn currently rejects this syntax.
The text was updated successfully, but these errors were encountered: