Skip to content

Commit 23ca2b6

Browse files
committed
Add a test for rust-lang#2630
Closes rust-lang#2630.
1 parent 68a6e69 commit 23ca2b6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/source/fn-simple.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ mod foo {
6464
pub(crate) fn init() {}
6565

6666
crate fn init() {}
67+
68+
// #2630
69+
fn make_map<T, F: (Fn(&T) -> String)>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}

tests/target/fn-simple.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,3 +105,6 @@ mod foo {
105105
pub(crate) fn init() {}
106106

107107
crate fn init() {}
108+
109+
// #2630
110+
fn make_map<T, F: Fn(&T) -> String>(records: &Vec<T>, key_fn: F) -> HashMap<String, usize> {}

0 commit comments

Comments
 (0)