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
58e901b6fd1163172149fd422565523b17eed5f0
rust/tests/ui/parser/pat-ranges-4.rs

7 lines
156 B
Rust
Raw Normal View History

Add tests for parsing of patterns
2015-04-03 05:56:27 +03:00
// Parsing of range patterns
Fix issue #22426 #22447
2015-02-19 22:01:57 +08:00
fn main() {
Add support for `..=` syntax Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-09-19 05:40:04 +00:00
let 10 - 3 ..= 10 = 8;
parser: `let` stmts & `for` exprs: allow or-patterns.
2019-08-18 22:54:07 +02:00
//~^ error: expected one of `...`, `..=`, `..`, `:`, `;`, `=`, or `|`, found `-`
Fix issue #22426 #22447
2015-02-19 22:01:57 +08:00
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 3018ms Template: 3ms
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