Add a test for #2782

This commit is contained in:
topecongiro 2018-07-01 10:40:47 +09:00
parent 888abbb0ec
commit a0206f53d2
2 changed files with 36 additions and 0 deletions

View File

@ -435,3 +435,8 @@ fn issue2704() {
.filter(|_| true)
.collect());
}
// #2782
fn issue2782() {
{let f={let f={{match f{F(f,_)=>{{loop{let f={match f{F(f,_)=>{{match f{F(f,_)=>{{loop{let f={let f={match f{'-'=>F(f,()),}};};}}}}}}}};}}}}}};};}
}

View File

@ -476,3 +476,34 @@ fn issue2704() {
.collect(),
);
}
// #2782
fn issue2782() {
{
let f = {
let f = {
{
match f {
F(f, _) => loop {
let f = {
match f {
F(f, _) => match f {
F(f, _) => loop {
let f = {
let f = {
match f {
'-' => F(f, ()),
}
};
};
},
},
}
};
},
}
}
};
};
}
}