Add a test for #2630

Closes #2630.
This commit is contained in:
Seiichi Uchida 2018-06-13 20:39:47 +09:00
parent 68a6e696f2
commit 23ca2b670e
2 changed files with 6 additions and 0 deletions

View File

@ -64,3 +64,6 @@ mod foo {
pub(crate) fn init() {}
crate fn init() {}
// #2630
fn make_map<T, F: (Fn(&T) -> String)>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}

View File

@ -105,3 +105,6 @@ mod foo {
pub(crate) fn init() {}
crate fn init() {}
// #2630
fn make_map<T, F: Fn(&T) -> String>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}