diff options
| author | bors <bors@rust-lang.org> | 2017-09-14 00:28:27 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-09-14 00:28:27 +0000 |
| commit | d1ca653b170c235ad01a83d89fcb18b1f8b6a3b0 (patch) | |
| tree | 8164bdb3d77369f108c1f02b997ae656cfb1e9a9 /src/libstd/thread | |
| parent | 94211416bcde4d1049f241b6c95594e28c8865e6 (diff) | |
| parent | 31cf11a157242184a11cc2a05f3eef9bf5c74309 (diff) | |
| download | rust-d1ca653b170c235ad01a83d89fcb18b1f8b6a3b0.tar.gz rust-d1ca653b170c235ad01a83d89fcb18b1f8b6a3b0.zip | |
Auto merge of #44484 - tirr-c:issue-44332, r=petrochenkov
Parse nested closure with two consecutive parameter lists properly
This is a followup of #44332.
---
Currently, in nightly, this does not compile:
```rust
fn main() {
let f = |_||x, y| x+y;
println!("{}", f(())(1, 2)); // should print 3
}
```
`|_||x, y| x+y` should be parsed as `|_| (|x, y| x+y)`, but the parser didn't accept `||` between `_` and `x`. This patch fixes the problem.
r? @petrochenkov
Diffstat (limited to 'src/libstd/thread')
0 files changed, 0 insertions, 0 deletions
