Skip to content

Commit

Permalink
Add a test for #2630
Browse files Browse the repository at this point in the history
Closes #2630.
  • Loading branch information
topecongiro committed Jun 13, 2018
1 parent 68a6e69 commit 23ca2b6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/source/fn-simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {}
3 changes: 3 additions & 0 deletions tests/target/fn-simple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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> {}

0 comments on commit 23ca2b6

Please sign in to comment.