Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 1 Packages Projects Releases Wiki Activity
Files
d0d2786d2d999e18b64aa6f1b455612d5245e21e
rust/crates/syntax/test_data/parser/ok/0060_as_range.rs

5 lines
56 B
Rust
Raw Normal View History

Fix parsing of "postfix" range expressions. Right now they are handled in `postfix_dot_expr`, but that doesn't allow it to correctly handle precedence. Integrate it more tightly with the Pratt parser instead. Also includes a drive-by fix for parsing `match .. {}`. Fixes #2242.
2019-11-15 00:08:43 -08:00
fn main() {
0 as usize ..;
1 + 2 as usize ..;
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 301ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API