Add a test for #2207

This commit is contained in:
Seiichi Uchida 2017-11-30 06:10:50 +09:00
parent 54f3c21a2f
commit 35aa1dc992
2 changed files with 13 additions and 0 deletions

View file

@ -198,3 +198,9 @@ fn issue2171() {
}
})
}
fn issue2207() {
a.map(|_| unsafe {
a_very_very_very_very_very_very_very_long_function_name_or_anything_else()
}.to_string())
}

View file

@ -230,3 +230,10 @@ fn issue2171() {
}
})
}
fn issue2207() {
a.map(|_| {
unsafe { a_very_very_very_very_very_very_very_long_function_name_or_anything_else() }
.to_string()
})
}