From 23ca2b670ee81deaee5cf4452d99edaf4d1117ad Mon Sep 17 00:00:00 2001 From: Seiichi Uchida Date: Wed, 13 Jun 2018 20:39:47 +0900 Subject: [PATCH] Add a test for #2630 Closes #2630. --- tests/source/fn-simple.rs | 3 +++ tests/target/fn-simple.rs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/tests/source/fn-simple.rs b/tests/source/fn-simple.rs index f1ce503ab0a..7afc0a1d201 100644 --- a/tests/source/fn-simple.rs +++ b/tests/source/fn-simple.rs @@ -64,3 +64,6 @@ mod foo { pub(crate) fn init() {} crate fn init() {} + +// #2630 +fn make_map String)>(records: &Vec, key_fn: F) -> HashMap {} diff --git a/tests/target/fn-simple.rs b/tests/target/fn-simple.rs index 4e6e6493835..6be9ad69b93 100644 --- a/tests/target/fn-simple.rs +++ b/tests/target/fn-simple.rs @@ -105,3 +105,6 @@ mod foo { pub(crate) fn init() {} crate fn init() {} + +// #2630 +fn make_map String>(records: &Vec, key_fn: F) -> HashMap {}