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:
parent
71ec1457ee
commit
c4d0c91161
3 changed files with 19 additions and 3 deletions
8
src/test/ui/parser/issue-105634.rs
Normal file
8
src/test/ui/parser/issue-105634.rs
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
// run-pass
|
||||
|
||||
fn main() {
|
||||
let _a = ..;
|
||||
let _b = ..=10;
|
||||
let _c = &..;
|
||||
let _d = &..=10;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue