Allow .. to be parsed as let initializer

.. and ..= are valid expressions, however when used in a let statement
it is not parsed.
This commit is contained in:
Deep Majumder 2022-12-14 19:10:03 +05:30
parent 71ec1457ee
commit c4d0c91161
3 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,8 @@
// run-pass
fn main() {
let _a = ..;
let _b = ..=10;
let _c = &..;
let _d = &..=10;
}