mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
Add a test for #2207
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user